c

org.bitcoins.wallet.models

SpendingInfoDAO

case class SpendingInfoDAO()(implicit ec: ExecutionContext, appConfig: WalletAppConfig) extends CRUDAutoInc[UTXORecord] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpendingInfoDAO
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. CRUDAutoInc
  7. TableAutoIncComponent
  8. CRUD
  9. CRUDAction
  10. JdbcProfileComponent
  11. Logging
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpendingInfoDAO()(implicit ec: ExecutionContext, appConfig: WalletAppConfig)

Type Members

  1. case class SpendingInfoTable(tag: slick.jdbc.JdbcProfile.API.Tag) extends TableAutoInc[UTXORecord] with Product with Serializable

    This table stores the necessary information to spend a transaction output (TXO) at a later point in time.

    This table stores the necessary information to spend a transaction output (TXO) at a later point in time. It also stores how many confirmations it has, whether or not it is spent (i.e. if it is a UTXO or not) and the TXID of the transaction that created this output.

  2. abstract class TableAutoInc[T] extends slick.jdbc.JdbcProfile.API.Table[T]
    Definition Classes
    TableAutoIncComponent

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. def _findAllUnspent(): Future[Vector[UTXORecord]]

    Enumerates all unspent TX outputs in the wallet with the state TxoState.PendingConfirmationsReceived or TxoState.ConfirmedReceived

  5. implicit val appConfig: WalletAppConfig
    Definition Classes
    SpendingInfoDAO → CRUDAutoInc → CRUD → CRUDAction → JdbcProfileComponent
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def count(): Future[Int]
    Definition Classes
    CRUD
  9. def create(si: SpendingInfoDb): Future[SpendingInfoDb]
  10. def create(t: UTXORecord): Future[UTXORecord]
    Definition Classes
    CRUD
  11. def createAction(t: UTXORecord): slick.jdbc.JdbcProfile.API.DBIOAction[UTXORecord, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  12. def createAll(ts: Vector[UTXORecord]): Future[Vector[UTXORecord]]
    Definition Classes
    CRUDAutoInc → CRUD
  13. def createAllAction(ts: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[UTXORecord], slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAutoInc → CRUDAction
  14. lazy val database: slick.jdbc.JdbcProfile.API.Database
    Definition Classes
    JdbcProfileComponent
  15. lazy val dbConfig: DatabaseConfig[JdbcProfile]
    Definition Classes
    JdbcProfileComponent
  16. lazy val dbPassword: String
    Definition Classes
    JdbcProfileComponent
  17. lazy val dbUsername: String
    Definition Classes
    JdbcProfileComponent
  18. def debug(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  19. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. def debug(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  21. def delete(si: SpendingInfoDb): Future[Int]
  22. def delete(t: UTXORecord): Future[Int]
    Definition Classes
    CRUD
  23. def deleteAction(si: SpendingInfoDb): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write]
  24. def deleteAction(t: UTXORecord): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  25. def deleteAll(): Future[Int]
    Definition Classes
    CRUD
  26. def deleteAll(ts: Vector[UTXORecord]): Future[Int]
    Definition Classes
    CRUD
  27. def deleteAllAction(): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write with Transactional]
    Definition Classes
    CRUDAction
  28. def deleteAllAction(ts: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  29. def deleteSpendingInfoDbAllAction(sis: Vector[SpendingInfoDb]): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write]
  30. implicit val ec: ExecutionContext
    Definition Classes
    SpendingInfoDAO → CRUD → CRUDAction
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def error(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def error(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def find(t: UTXORecord): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], UTXORecord, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  37. def findAll(ts: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], UTXORecord, Seq]
    Definition Classes
    CRUDAutoInc → CRUDAction
  38. def findAll(): Future[Vector[UTXORecord]]
    Definition Classes
    CRUD
  39. def findAllAction(): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[UTXORecord], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  40. def findAllForAccount(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]
  41. def findAllForAccountAction(hdAccount: HDAccount): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[SpendingInfoDb], slick.jdbc.JdbcProfile.API.NoStream, Read]
  42. def findAllInMempool: Future[Vector[SpendingInfoDb]]

    Enumerates all TX outputs in the wallet with the state TxoState.BroadcastSpent or TxoState.BroadcastReceived

  43. def findAllOutpoints(): Future[Vector[TransactionOutPoint]]

    Enumerates all TX outpoints in the wallet

  44. def findAllPendingConfirmation: Future[Vector[SpendingInfoDb]]

    Enumerates all TX outputs in the wallet with the state TxoState.PendingConfirmationsReceived or TxoState.PendingConfirmationsSpent

  45. def findAllSpendingInfos(): Future[Vector[SpendingInfoDb]]
  46. def findAllSpendingInfosAction(): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[SpendingInfoDb], slick.jdbc.JdbcProfile.API.NoStream, Read]
  47. def findAllUnspent(): Future[Vector[SpendingInfoDb]]
  48. def findAllUnspentForAccount(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]

    Finds all utxos for a given account

  49. def findAllUnspentForTag(tag: AddressTag): Future[Vector[SpendingInfoDb]]
  50. def findByOutPoints(outPoints: Vector[TransactionOutPoint]): Future[Vector[SpendingInfoDb]]

    Enumerates all TX outpoints in the wallet

  51. def findByPrimaryKey(id: Long): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], UTXORecord, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  52. def findByPrimaryKeyAction(id: Long): slick.jdbc.JdbcProfile.API.DBIOAction[Option[UTXORecord], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  53. def findByPrimaryKeys(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.Query[TableAutoInc[UTXORecord], UTXORecord, Seq]
    Definition Classes
    CRUDAutoInc → CRUDAction
  54. def findByPrimaryKeysAction(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[UTXORecord], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  55. def findByScriptPubKey(scriptPubKey: ScriptPubKey): Future[Vector[SpendingInfoDb]]
  56. def findByScriptPubKeyId(scriptPubKeyId: Long): Future[Vector[UTXORecord]]
  57. def findByTxoState(state: TxoState): Future[Vector[SpendingInfoDb]]
  58. def findDbsForTx(txid: DoubleSha256DigestBE): Future[Vector[UTXORecord]]

    Fetches all the incoming TXOs in our DB that are in the transaction with the given TXID

  59. def findOutputsBeingSpent(txs: Vector[Transaction]): Future[Vector[SpendingInfoDb]]
  60. def findOutputsBeingSpent(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Finds all the outputs being spent in the given transaction

  61. def findOutputsReceived(txids: Vector[DoubleSha256DigestBE]): Future[Vector[SpendingInfoDb]]

    Fetches all the incoming TXOs in our DB that are in the transaction with the given TXID

  62. def findTx(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Fetches all the received TXOs in our DB that are in the given TX

  63. def findTxs(txs: Vector[Transaction]): Future[Vector[SpendingInfoDb]]

    Fetches all received txos in our db that are in the given txs

  64. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  65. def info(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  66. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def info(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def infoToUtxo(infos: Vector[SpendingInfoDb]): Future[Vector[UTXORecord]]
  69. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  70. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  71. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  72. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  73. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  74. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  75. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  76. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  77. def markAsReserved(ts: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
  78. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  79. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  80. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  81. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  82. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  83. def read(id: Long): Future[Option[UTXORecord]]
    Definition Classes
    CRUD
  84. def safeDatabase: SafeDatabase
    Definition Classes
    CRUD
  85. val schemaName: Option[String]
    Definition Classes
    CRUD
  86. def startHikariLogger(interval: Duration): HikariLogging
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  87. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  88. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  89. val table: slick.jdbc.JdbcProfile.API.TableQuery[SpendingInfoTable]

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    SpendingInfoDAO → CRUDAutoInc → CRUDAction
  90. implicit def tableQuerySafeSubtypeCast[SpecificT <: AbstractTable[_], SomeT <: SpecificT](tableQuery: slick.jdbc.JdbcProfile.API.TableQuery[SomeT]): slick.jdbc.JdbcProfile.API.TableQuery[SpecificT]
    Attributes
    protected
    Definition Classes
    CRUD
  91. def trace(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  92. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  93. def trace(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  94. def update(si: SpendingInfoDb): Future[SpendingInfoDb]
  95. def update(t: UTXORecord): Future[UTXORecord]
    Definition Classes
    CRUD
  96. def updateAction(t: UTXORecord): slick.jdbc.JdbcProfile.API.DBIOAction[UTXORecord, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  97. def updateAll(ts: Vector[UTXORecord]): Future[Vector[UTXORecord]]
    Definition Classes
    CRUD
  98. def updateAllAction(ts: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[UTXORecord], slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  99. def updateAllSpendingInfoDb(ts: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
  100. def upsert(si: SpendingInfoDb): Future[SpendingInfoDb]
  101. def upsert(t: UTXORecord): Future[UTXORecord]
    Definition Classes
    CRUD
  102. def upsertAction(t: UTXORecord): slick.jdbc.JdbcProfile.API.DBIOAction[UTXORecord, slick.jdbc.JdbcProfile.API.NoStream, Write with Read]
    Definition Classes
    CRUDAction
  103. def upsertAll(ts: Vector[UTXORecord]): Future[Vector[UTXORecord]]
    Definition Classes
    CRUD
  104. def upsertAllAction(ts: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[UTXORecord], slick.jdbc.JdbcProfile.API.NoStream, Write with Read]
    Definition Classes
    CRUDAction
  105. def upsertAllSpendingInfoDb(ts: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
  106. def utxoToInfo(utxos: Vector[UTXORecord]): Future[Vector[SpendingInfoDb]]
  107. def utxoToInfoAction(utxos: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[SpendingInfoDb], slick.jdbc.JdbcProfile.API.NoStream, Read]
  108. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  111. def warn(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  112. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  113. def warn(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  114. def withAddress(txid: DoubleSha256DigestBE): Future[Vector[(SpendingInfoDb, AddressDb)]]

    Given a TXID, fetches all incoming TXOs and the address the TXO pays to

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CRUDAutoInc[UTXORecord]

Inherited from CRUD[UTXORecord, Long]

Inherited from CRUDAction[UTXORecord, Long]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped