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
74
74
lookup :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era )
75
75
lookup k = Map. lookup k . unUTxO
76
76
77
+ -- | Synonym for `lookup`.
78
+ resolve :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era )
79
+ resolve = Cardano.Api.Internal.Tx.UTxO. lookup
80
+
77
81
-- | Filter all `TxOut` that satisfy the predicate.
78
82
filter :: (TxOut CtxUTxO era -> Bool ) -> UTxO era -> UTxO era
79
83
filter 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
3
3
, UTxO. empty
4
4
, UTxO. singleton
5
5
, UTxO. lookup
6
+ , UTxO. resolve
6
7
, UTxO. filter
7
8
, UTxO. filterWithKey
8
9
, UTxO. inputSet
You can’t perform that action at this time.
0 commit comments