We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f4048c commit cf7de94Copy full SHA for cf7de94
cardano-api/src/Cardano/Api/Internal/Tx/UTxO.hs
@@ -74,6 +74,10 @@ singleton i o = UTxO $ Map.singleton i o
74
lookup :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era)
75
lookup k = Map.lookup k . unUTxO
76
77
+-- | Synonym for `lookup`.
78
+resolve :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era)
79
+resolve = Cardano.Api.Internal.Tx.UTxO.lookup
80
+
81
-- | Filter all `TxOut` that satisfy the predicate.
82
filter :: (TxOut CtxUTxO era -> Bool) -> UTxO era -> UTxO era
83
filter fn = UTxO . Map.filter fn . unUTxO
cardano-api/src/Cardano/Api/Tx/UTxO.hs
@@ -3,6 +3,7 @@ module Cardano.Api.Tx.UTxO
3
, UTxO.empty
4
, UTxO.singleton
5
, UTxO.lookup
6
+ , UTxO.resolve
7
, UTxO.filter
8
, UTxO.filterWithKey
9
, UTxO.inputSet
0 commit comments