Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Tx.CollectCom
Contents
Synopsis
- collectComTx :: NetworkId -> ScriptRegistry -> VerificationKey PaymentKey -> HeadId -> HeadParameters -> (TxIn, TxOut CtxUTxO) -> Map TxIn (TxOut CtxUTxO) -> UTxO -> Tx
- data OpenThreadOutput = OpenThreadOutput {
- openThreadUTxO :: (TxIn, TxOut CtxUTxO)
- openContestationPeriod :: ContestationPeriod
- openParties :: [Party]
- newtype UTxOHash = UTxOHash ByteString
- data CollectComObservation = CollectComObservation {}
- observeCollectComTx :: UTxO -> Tx -> Maybe CollectComObservation
Construction
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 |
-> 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
Constructors
UTxOHash ByteString |
Instances
Arbitrary UTxOHash Source # | |
Generic UTxOHash Source # | |
Show UTxOHash Source # | |
Eq UTxOHash Source # | |
type Rep UTxOHash Source # | |
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 #
Constructors
CollectComObservation | |
Fields
|
Instances
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.