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. JdbcProfileComponent
  10. Logging
  11. AnyRef
  12. 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 → 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 createAll(ts: Vector[UTXORecord]): Future[Vector[UTXORecord]]
    Definition Classes
    CRUDAutoInc → CRUD
  12. lazy val database: slick.jdbc.JdbcProfile.API.Database
    Definition Classes
    JdbcProfileComponent
  13. lazy val dbConfig: DatabaseConfig[JdbcProfile]
    Definition Classes
    JdbcProfileComponent
  14. def debug(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  15. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  16. def debug(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  17. def delete(si: SpendingInfoDb): Future[Int]
  18. def delete(t: UTXORecord): Future[Int]
    Definition Classes
    CRUD
  19. def deleteAll(): Future[Int]
    Definition Classes
    CRUD
  20. def deleteAll(ts: Vector[UTXORecord]): Future[Int]
    Definition Classes
    CRUD
  21. implicit val ec: ExecutionContext
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def error(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def error(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def find(t: UTXORecord): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], UTXORecord, Seq]
    Attributes
    protected
    Definition Classes
    CRUD
  28. def findAll(ts: Vector[UTXORecord]): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], UTXORecord, Seq]
    Definition Classes
    CRUDAutoInc → CRUD
  29. def findAll(): Future[Vector[UTXORecord]]
    Definition Classes
    CRUD
  30. def findAllForAccount(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]
  31. def findAllInMempool: Future[Vector[SpendingInfoDb]]

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

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

    Enumerates all TX outpoints in the wallet

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

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

  34. def findAllSpendingInfos(): Future[Vector[SpendingInfoDb]]
  35. def findAllUnspent(): Future[Vector[SpendingInfoDb]]
  36. def findAllUnspentForAccount(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]

    Finds all utxos for a given account

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

    Enumerates all TX outpoints in the wallet

  39. def findByPrimaryKey(id: Long): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], UTXORecord, Seq]
    Attributes
    protected
    Definition Classes
    CRUD
  40. def findByPrimaryKeys(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.Query[TableAutoInc[UTXORecord], UTXORecord, Seq]
    Definition Classes
    CRUDAutoInc → CRUD
  41. def findByScriptPubKey(scriptPubKey: ScriptPubKey): Future[Vector[SpendingInfoDb]]
  42. def findByScriptPubKeyId(scriptPubKeyId: Long): Future[Vector[UTXORecord]]
  43. def findByTxoState(state: TxoState): Future[Vector[SpendingInfoDb]]
  44. def findDbsForTx(txid: DoubleSha256DigestBE): Future[Vector[UTXORecord]]

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

  45. def findOutputsBeingSpent(txs: Vector[Transaction]): Future[Vector[SpendingInfoDb]]
  46. def findOutputsBeingSpent(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Finds all the outputs being spent in the given transaction

  47. 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

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

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

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

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

  50. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def info(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  52. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  53. def info(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. def infoToUtxo(infos: Vector[SpendingInfoDb]): Future[Vector[UTXORecord]]
  55. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  56. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  57. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  58. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  59. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  60. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  61. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  62. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  63. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  64. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  65. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  66. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  67. lazy val password: String
    Definition Classes
    JdbcProfileComponent
  68. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  69. def read(id: Long): Future[Option[UTXORecord]]
    Definition Classes
    CRUD
  70. def safeDatabase: SafeDatabase
    Definition Classes
    CRUD
  71. val schemaName: Option[String]
    Definition Classes
    CRUD
  72. def startHikariLogger(interval: Duration): HikariLogging
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  73. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  74. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  75. 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 → CRUD
  76. 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
  77. def trace(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  78. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  79. def trace(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  80. def update(si: SpendingInfoDb): Future[SpendingInfoDb]
  81. def update(t: UTXORecord): Future[UTXORecord]
    Definition Classes
    CRUD
  82. def updateAll(ts: Vector[UTXORecord]): Future[Vector[UTXORecord]]
    Definition Classes
    CRUD
  83. def updateAllSpendingInfoDb(ts: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
  84. def upsert(si: SpendingInfoDb): Future[SpendingInfoDb]
  85. def upsert(t: UTXORecord): Future[UTXORecord]
    Definition Classes
    CRUD
  86. def upsertAll(ts: Vector[UTXORecord]): Future[Vector[UTXORecord]]
    Definition Classes
    CRUD
  87. def upsertAllSpendingInfoDb(ts: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
  88. lazy val username: String
    Definition Classes
    JdbcProfileComponent
  89. def utxoToInfo(utxos: Vector[UTXORecord]): Future[Vector[SpendingInfoDb]]
  90. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  93. def warn(mkr: Marker, msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  94. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  95. def warn(msg: ⇒ Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  96. 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 Logging

Inherited from AnyRef

Inherited from Any

Ungrouped