cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Tx.UTxO

Synopsis

Documentation

newtype UTxO era Source #

Constructors

UTxO 

Fields

Instances

Instances details
IsShelleyBasedEra era => FromJSON (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Methods

parseJSON :: Value -> Parser (UTxO era)

parseJSONList :: Value -> Parser [UTxO era]

omittedField :: Maybe (UTxO era)

IsCardanoEra era => ToJSON (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Methods

toJSON :: UTxO era -> Value

toEncoding :: UTxO era -> Encoding

toJSONList :: [UTxO era] -> Value

toEncodingList :: [UTxO era] -> Encoding

omitField :: UTxO era -> Bool

Monoid (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Methods

mempty :: UTxO era Source #

mappend :: UTxO era -> UTxO era -> UTxO era Source #

mconcat :: [UTxO era] -> UTxO era Source #

Semigroup (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Methods

(<>) :: UTxO era -> UTxO era -> UTxO era Source #

sconcat :: NonEmpty (UTxO era) -> UTxO era Source #

stimes :: Integral b => b -> UTxO era -> UTxO era Source #

IsList (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Associated Types

type Item (UTxO era) 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

type Item (UTxO era) = Item (Map TxIn (TxOut CtxUTxO era))

Methods

fromList :: [Item (UTxO era)] -> UTxO era Source #

fromListN :: Int -> [Item (UTxO era)] -> UTxO era Source #

toList :: UTxO era -> [Item (UTxO era)] Source #

Show (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Methods

showsPrec :: Int -> UTxO era -> ShowS Source #

show :: UTxO era -> String Source #

showList :: [UTxO era] -> ShowS Source #

Eq (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

Methods

(==) :: UTxO era -> UTxO era -> Bool Source #

(/=) :: UTxO era -> UTxO era -> Bool Source #

type Item (UTxO era) Source # 
Instance details

Defined in Cardano.Api.Internal.Tx.UTxO

type Item (UTxO era) = Item (Map TxIn (TxOut CtxUTxO era))

empty :: UTxO era Source #

Create an empty UTxO.

singleton :: TxIn -> TxOut CtxUTxO era -> UTxO era Source #

Create a UTxO from a single unspent transaction output.

lookup :: TxIn -> UTxO era -> Maybe (TxOut CtxUTxO era) Source #

Find a TxOut for a given TxIn.

filter :: (TxOut CtxUTxO era -> Bool) -> UTxO era -> UTxO era Source #

Filter all TxOut that satisfy the predicate.

filterWithKey :: (TxIn -> TxOut CtxUTxO era -> Bool) -> UTxO era -> UTxO era Source #

Filter all UTxO to only include outs satisfying given predicate.

inputSet :: UTxO (TxOut CtxUTxO era) -> Set TxIn Source #

Get the 'UTxO domain input's set

difference :: UTxO era -> UTxO era -> UTxO era Source #

Remove the right hand side from the left hand side.