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.
- Alphabetic
- By Inheritance
- UtxoHandling
- Serializable
- Product
- Equals
- BitcoinSLogger
- UtxoHandlingApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UtxoHandling(spendingInfoDAO: SpendingInfoDAO, transactionDAO: TransactionDAO, chainQueryApi: ChainQueryApi)(implicit walletConfig: WalletAppConfig, system: ActorSystem)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chainQueryApi: ChainQueryApi
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listDefaultAccountUtxos(): Future[Vector[SpendingInfoDb]]
- def listUtxos(hdAccount: HDAccount, state: TxoState): Future[Vector[SpendingInfoDb]]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- def listUtxos(state: TxoState): Future[Vector[SpendingInfoDb]]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- def listUtxos(hdAccount: HDAccount, tag: AddressTag): Future[Vector[SpendingInfoDb]]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- def listUtxos(tag: AddressTag): Future[Vector[SpendingInfoDb]]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- def listUtxos(outPoints: Vector[TransactionOutPoint]): Future[Vector[SpendingInfoDb]]
Returns all the utxos originating from the given outpoints
- def listUtxos(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]
- def listUtxos(): Future[Vector[SpendingInfoDb]]
Lists unspent transaction outputs in the wallet
Lists unspent transaction outputs in the wallet
- returns
Vector[SpendingInfoDb]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- 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
- UtxoHandling → UtxoHandlingApi
- def markUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- def markUTXOsAsReservedAction(utxos: Vector[SpendingInfoDb]): DBIOAction[(Vector[SpendingInfoDb], Future[Unit]), NoStream, Read with Write]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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).
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val spendingInfoDAO: SpendingInfoDAO
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val transactionDAO: TransactionDAO
- 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
- UtxoHandling → UtxoHandlingApi
- def unmarkUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
- Definition Classes
- UtxoHandling → UtxoHandlingApi
- 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
- UtxoHandling → UtxoHandlingApi
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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