Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fromTx :: ChainIndexTx -> TxUtxoBalance
- isUnspentOutput :: TxOutRef -> UtxoState TxUtxoBalance -> Bool
- unspentOutputs :: UtxoState TxUtxoBalance -> Set TxOutRef
- fromBlock :: Tip -> [ChainIndexTx] -> UtxoState TxUtxoBalance
- rollback :: Point -> UtxoIndex TxUtxoBalance -> Either RollbackFailed (RollbackResult TxUtxoBalance)
Documentation
fromTx :: ChainIndexTx -> TxUtxoBalance Source #
isUnspentOutput :: TxOutRef -> UtxoState TxUtxoBalance -> Bool Source #
Whether a TxOutRef
is a member of the UTXO set (ie. unspent)
unspentOutputs :: UtxoState TxUtxoBalance -> Set TxOutRef Source #
The UTXO set
fromBlock :: Tip -> [ChainIndexTx] -> UtxoState TxUtxoBalance Source #
UtxoIndex
for a single block
rollback :: Point -> UtxoIndex TxUtxoBalance -> Either RollbackFailed (RollbackResult TxUtxoBalance) Source #
Perform a rollback on the utxo index