Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Tx.Increment
Contents
Synopsis
- incrementTx :: ScriptRegistry -> VerificationKey PaymentKey -> HeadId -> HeadParameters -> (TxIn, TxOut CtxUTxO) -> Snapshot Tx -> UTxO -> SlotNo -> MultiSignature (Snapshot Tx) -> Tx
- data IncrementObservation = IncrementObservation {
- headId :: HeadId
- newVersion :: SnapshotVersion
- depositTxId :: TxId
- observeIncrementTx :: UTxO -> Tx -> Maybe IncrementObservation
Construction
Arguments
:: ScriptRegistry | Published Hydra scripts to reference. |
-> VerificationKey PaymentKey | Party who's authorizing this transaction |
-> HeadId | Head identifier |
-> HeadParameters | Parameters of the head. |
-> (TxIn, TxOut CtxUTxO) | Everything needed to spend the Head state-machine output. |
-> Snapshot Tx | Confirmed Snapshot |
-> UTxO | Deposit output UTxO to be spent in increment transaction |
-> SlotNo | |
-> MultiSignature (Snapshot Tx) | |
-> Tx |
Construct a _increment_ transaction which takes as input some UTxO'
locked at v_deposit and make it available on L2.
Observation
data IncrementObservation Source #
Constructors
IncrementObservation | |
Fields
|
Instances
observeIncrementTx :: UTxO -> Tx -> Maybe IncrementObservation Source #