Packages

case class UtxoHandling(spendingInfoDAO: SpendingInfoDAO, transactionDAO: TransactionDAO, chainQueryApi: ChainQueryApi)(implicit walletConfig: WalletAppConfig, system: ActorSystem) extends UtxoHandlingApi with BitcoinSLogger with Product with Serializable

Provides functionality related to handling UTXOs in our wallet. The most notable examples of functionality here are enumerating UTXOs in the wallet and importing a UTXO into the wallet for later spending.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UtxoHandling
  2. Serializable
  3. Product
  4. Equals
  5. BitcoinSLogger
  6. UtxoHandlingApi
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UtxoHandling(spendingInfoDAO: SpendingInfoDAO, transactionDAO: TransactionDAO, chainQueryApi: ChainQueryApi)(implicit walletConfig: WalletAppConfig, system: ActorSystem)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val chainQueryApi: ChainQueryApi
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def listDefaultAccountUtxos(): Future[Vector[SpendingInfoDb]]
  12. def listUtxos(hdAccount: HDAccount, state: TxoState): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  13. def listUtxos(state: TxoState): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  14. def listUtxos(hdAccount: HDAccount, tag: AddressTag): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  15. def listUtxos(tag: AddressTag): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  16. def listUtxos(outPoints: Vector[TransactionOutPoint]): Future[Vector[SpendingInfoDb]]

    Returns all the utxos originating from the given outpoints

  17. def listUtxos(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]
  18. def listUtxos(): Future[Vector[SpendingInfoDb]]

    Lists unspent transaction outputs in the wallet

    Lists unspent transaction outputs in the wallet

    returns

    Vector[SpendingInfoDb]

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  19. def logger: Logger
    Definition Classes
    BitcoinSLogger
  20. def markUTXOsAsReserved(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Marks all utxos that are ours in this transactions as reserved

    Marks all utxos that are ours in this transactions as reserved

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  21. def markUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  22. def markUTXOsAsReservedAction(utxos: Vector[SpendingInfoDb]): DBIOAction[(Vector[SpendingInfoDb], Future[Unit]), NoStream, Read with Write]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def processReceivedUtxo(transaction: Transaction, index: Int, blockHashOpt: Option[DoubleSha256DigestBE], addressDb: AddressDb): Future[SpendingInfoDb]

    Inserts the UTXO at the given index into our DB, swallowing the error if any (this is because we're operating on data we've already verified).

  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. val spendingInfoDAO: SpendingInfoDAO
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. val transactionDAO: TransactionDAO
  31. def unmarkUTXOsAsReserved(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Unmarks all utxos that are ours in this transactions indicating they are no longer reserved

    Unmarks all utxos that are ours in this transactions indicating they are no longer reserved

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  32. def unmarkUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  33. def updateUtxoPendingStates(): Future[Vector[SpendingInfoDb]]

    Takes in a block header and updates our TxoStates to the new chain tip

    Takes in a block header and updates our TxoStates to the new chain tip

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. def writeUtxo(tx: Transaction, blockHashOpt: Option[DoubleSha256DigestBE], output: TransactionOutput, outPoint: TransactionOutPoint, addressDb: AddressDb): Future[SpendingInfoDb]

    Constructs a DB level representation of the given UTXO, and persist it to disk

    Constructs a DB level representation of the given UTXO, and persist it to disk

    Attributes
    protected

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BitcoinSLogger

Inherited from UtxoHandlingApi

Inherited from AnyRef

Inherited from Any

Ungrouped