hydra-tx-0.20.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

data OpenThreadOutput Source #

Representation of the Head output after a CollectCom transaction.

Constructors

OpenThreadOutput 

Fields

Instances

Instances details
Generic OpenThreadOutput Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Associated Types

type Rep OpenThreadOutput :: Type -> Type Source #

Show OpenThreadOutput Source # 
Instance details

Defined in Hydra.Tx.CollectCom

Eq OpenThreadOutput Source # 
Instance details

Defined in Hydra.Tx.CollectCom

type Rep OpenThreadOutput Source # 
Instance details

Defined in Hydra.Tx.CollectCom

type Rep OpenThreadOutput = D1 ('MetaData "OpenThreadOutput" "Hydra.Tx.CollectCom" "hydra-tx-0.20.0-b01Sd51Fpn1r0Mfj7XdB1" 'False) (C1 ('MetaCons "OpenThreadOutput" 'PrefixI 'True) (S1 ('MetaSel ('Just "openThreadUTxO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TxIn, TxOut CtxUTxO)) :*: (S1 ('MetaSel ('Just "openContestationPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContestationPeriod) :*: S1 ('MetaSel ('Just "openParties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Party]))))

newtype UTxOHash Source #

Constructors

UTxOHash ByteString 

Instances

Instances details
Arbitrary UTxOHash Source # 
Instance details

Defined in Hydra.Tx.CollectCom

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

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.20.0-b01Sd51Fpn1r0Mfj7XdB1" 'True) (C1 ('MetaCons "UTxOHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

data CollectComObservation Source #

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.