Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- depositTx :: NetworkId -> HeadId -> CommitBlueprintTx Tx -> UTCTime -> Tx
- data DepositObservation = DepositObservation {
- headId :: HeadId
- deposited :: UTxO
- depositTxId :: TxId
- deadline :: POSIXTime
- observeDepositTx :: NetworkId -> Tx -> Maybe DepositObservation
- observeDepositTxOut :: Network -> TxOut CtxUTxO -> Maybe (HeadId, UTxO, POSIXTime)
Construction
:: NetworkId | |
-> HeadId | |
-> CommitBlueprintTx Tx | |
-> UTCTime | Deposit deadline |
-> Tx |
Builds a deposit transaction to lock funds into the v_deposit script.
Observation
data DepositObservation Source #
DepositObservation | |
|
Instances
observeDepositTx :: NetworkId -> Tx -> Maybe DepositObservation Source #
observeDepositTxOut :: Network -> TxOut CtxUTxO -> Maybe (HeadId, UTxO, POSIXTime) Source #