File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
cardano-api/src/Cardano/Api Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ singleton i o = UTxO $ Map.singleton i o
7474lookup :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era )
7575lookup k = Map. lookup k . unUTxO
7676
77+ -- | Synonym for `lookup`.
78+ resolveTxIn :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era )
79+ resolveTxIn = Cardano.Api.Internal.Tx.UTxO. lookup
80+
7781-- | Filter all `TxOut` that satisfy the predicate.
7882filter :: (TxOut CtxUTxO era -> Bool ) -> UTxO era -> UTxO era
7983filter fn = UTxO . Map. filter fn . unUTxO
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ module Cardano.Api.Tx.UTxO
33 , UTxO. empty
44 , UTxO. singleton
55 , UTxO. lookup
6+ , UTxO. resolveTxIn
67 , UTxO. filter
78 , UTxO. filterWithKey
89 , UTxO. inputSet
You can’t perform that action at this time.
0 commit comments