hydra-tx
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Tx.Increment

Synopsis

Construction

incrementTx Source #

Arguments

:: ScriptRegistry

Published Hydra scripts to reference.

-> VerificationKey PaymentKey

Party who's authorizing this transaction

-> (TxIn, HeadId)

Head seed and 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

Instances details
FromJSON IncrementObservation Source # 
Instance details

Defined in Hydra.Tx.Increment

ToJSON IncrementObservation Source # 
Instance details

Defined in Hydra.Tx.Increment

Generic IncrementObservation Source # 
Instance details

Defined in Hydra.Tx.Increment

Associated Types

type Rep IncrementObservation :: Type -> Type Source #

Show IncrementObservation Source # 
Instance details

Defined in Hydra.Tx.Increment

Eq IncrementObservation Source # 
Instance details

Defined in Hydra.Tx.Increment

type Rep IncrementObservation Source # 
Instance details

Defined in Hydra.Tx.Increment

type Rep IncrementObservation = D1 ('MetaData "IncrementObservation" "Hydra.Tx.Increment" "hydra-tx-2.3.0-AmphLXDqLbeiaw5uNmLIz" 'False) (C1 ('MetaCons "IncrementObservation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "headId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HeadId) :*: S1 ('MetaSel ('Just "newVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SnapshotVersion)) :*: (S1 ('MetaSel ('Just "depositTxId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TxId) :*: S1 ('MetaSel ('Just "deposited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTxO))))

observeIncrementTx :: NetworkId -> UTxO -> Tx -> Maybe IncrementObservation Source #