We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 457b7eb commit 7b471feCopy full SHA for 7b471fe
2 files changed
cardano-api/src/Cardano/Api/Internal/Tx/UTxO.hs
@@ -74,6 +74,10 @@ filterWithKey fn = UTxO . Map.filterWithKey fn . unUTxO
74
inputSet :: UTxO era -> Set TxIn
75
inputSet = Map.keysSet . unUTxO
76
77
+-- | Get the UTxO output set.
78
+outputs :: UTxO era -> [TxOut CtxUTxO era]
79
+outputs = Map.elems . unUTxO
80
+
81
-- | Remove the right hand side from the left hand side.
82
difference :: UTxO era -> UTxO era -> UTxO era
83
difference a b = UTxO $ Map.difference (unUTxO a) (unUTxO b)
cardano-api/src/Cardano/Api/Tx/UTxO.hs
@@ -6,6 +6,7 @@ module Cardano.Api.Tx.UTxO
6
, UTxO.filter
7
, UTxO.filterWithKey
8
, UTxO.inputSet
9
+ , UTxO.outputs
10
, UTxO.difference
11
, UTxO.fromList
12
, UTxO.toList
0 commit comments