ResolvedUtxos

scalus.cardano.txbuilder.TransactionBuilder.ResolvedUtxos
See theResolvedUtxos companion object
case class ResolvedUtxos

A wrapper around a UTxO set that prevents adding conflicting pairs

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addUtxo(utxo: Utxo): Option[ResolvedUtxos]
  • If the UTxO does not exist in the map, add it.
  • If the UTxO exists in the map with a different output associated, return None
  • If the UTxO exists in the map with the same output, return the map unmodified

Attributes

def addUtxos(utxos: Seq[Utxo]): Either[Seq[Utxo], ResolvedUtxos]

Tries to add multiple UTxOs, returning invalid additions. See addUtxo

Tries to add multiple UTxOs, returning invalid additions. See addUtxo

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product