Packages

c

org.bitcoins.dlc.wallet.internal

DLCTransactionProcessing

case class DLCTransactionProcessing(txProcessing: TransactionProcessingApi, dlcWalletDAOs: DLCWalletDAOs, walletDAOs: WalletDAOs, dlcDataManagement: DLCDataManagement, keyManager: BIP39KeyManager, transactionDAO: TransactionDAO, utxoHandling: UtxoHandlingApi, dlcWalletApi: DLCWalletApi)(implicit dlcConfig: DLCAppConfig, ec: ExecutionContext) extends TransactionProcessingApi with BitcoinSLogger with Product with Serializable

Overrides TransactionProcessing from Wallet to add extra logic to process transactions that could from our own DLC.

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

Instance Constructors

  1. new DLCTransactionProcessing(txProcessing: TransactionProcessingApi, dlcWalletDAOs: DLCWalletDAOs, walletDAOs: WalletDAOs, dlcDataManagement: DLCDataManagement, keyManager: BIP39KeyManager, transactionDAO: TransactionDAO, utxoHandling: UtxoHandlingApi, dlcWalletApi: DLCWalletApi)(implicit dlcConfig: DLCAppConfig, ec: ExecutionContext)

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. def calculateAndSetState(dlcDb: DLCDb): Future[Option[DLCDb]]

    Calculates the new state of the DLCDb based on the closing transaction, will delete old CET sigs that are no longer needed after execution

    Calculates the new state of the DLCDb based on the closing transaction, will delete old CET sigs that are no longer needed after execution

    returns

    a DLCDb if we can calculate the state, else None if we cannot calculate the state

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val dlcDataManagement: DLCDataManagement
  8. val dlcWalletApi: DLCWalletApi
  9. val dlcWalletDAOs: DLCWalletDAOs
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def findByTxId(txId: DoubleSha256Digest)(implicit ec: ExecutionContext): Future[Option[TransactionDb]]
    Definition Classes
    TransactionProcessingApi
  13. final def findByTxId(txId: DoubleSha256DigestBE)(implicit ec: ExecutionContext): Future[Option[TransactionDb]]
    Definition Classes
    TransactionProcessingApi
  14. def findByTxIds(txIds: Vector[DoubleSha256DigestBE]): Future[Vector[TransactionDb]]
  15. def findTransaction(txId: DoubleSha256DigestBE): Future[Option[TransactionDb]]
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getScriptSigParams(dlcDb: DLCDb, fundingInputs: Vector[DLCFundingInputDb]): Future[Vector[ScriptSignatureParams[InputInfo]]]
  18. def insertTransaction(tx: Transaction, blockHashOpt: Option[DoubleSha256DigestBE]): Future[TransactionDb]
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val keyManager: BIP39KeyManager
  21. def listTransactions(): Future[Vector[TransactionDb]]
  22. def logger: Logger
    Definition Classes
    BitcoinSLogger
  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 processBlock(block: Block): Future[Unit]
  27. def processOurTransaction(transaction: Transaction, feeRate: FeeUnit, inputAmount: CurrencyUnit, sentAmount: CurrencyUnit, blockHashWithConfsOpt: Option[BlockHashWithConfs], newTags: Vector[AddressTag]): Future[ProcessTxResult]

    Processes TXs originating from our wallet.

    Processes TXs originating from our wallet. This is called right after we've signed a TX, updating our UTXO state.

    Definition Classes
    DLCTransactionProcessingTransactionProcessingApi
  28. def processReceivedUtxos(tx: Transaction, blockHashWithConfsOpt: Option[BlockHashWithConfs], spendingInfoDbs: Vector[SpendingInfoDb], newTags: Vector[AddressTag], relevantReceivedOutputs: Vector[OutputWithIndex]): Future[Vector[SpendingInfoDb]]
  29. def processSpentUtxos(transaction: Transaction, outputsBeingSpent: Vector[SpendingInfoDb], blockHashWithConfsOpt: Option[BlockHashWithConfs]): Future[Vector[SpendingInfoDb]]
  30. def processTransaction(transaction: Transaction, blockHashWithConfsOpt: Option[BlockHashWithConfs]): Future[Unit]
  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. def subscribeForBlockProcessingCompletionSignal(blockHash: DoubleSha256DigestBE): Future[DoubleSha256DigestBE]
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. val transactionDAO: TransactionDAO
  35. val txProcessing: TransactionProcessingApi
  36. val utxoHandling: UtxoHandlingApi
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. val walletDAOs: WalletDAOs

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped