Module

Ctl.Internal.CoinSelection.UtxoIndex

#UtxoIndex

#buildUtxoIndex

buildUtxoIndex :: UtxoMap -> UtxoIndex

Creates an index from a UtxoMap.

#emptyUtxoIndex

emptyUtxoIndex :: UtxoIndex

An index with no entries.

#utxoIndexUniverse

#valueHasAsset

valueHasAsset :: Value -> Asset -> Boolean

Indicates whether or not a given bundle includes a given asset.

Both ada and non-ada assets can be queried.

Taken from cardano-wallet: https://github.com/input-output-hk/cardano-wallet/blob/9d73b57e23392e25148cfc8db560cb8f656cb56a/lib/primitive/lib/Cardano/Wallet/Primitive/Types/UTxOIndex/Internal.hs#L526

Modules