Packages

case class DLCWallet(walletApi: Wallet)(implicit dlcConfig: DLCAppConfig, walletConfig: WalletAppConfig) extends DLCNeutrinoHDWalletApi with BitcoinSLogger with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DLCWallet
  2. Serializable
  3. Product
  4. Equals
  5. BitcoinSLogger
  6. DLCNeutrinoHDWalletApi
  7. DLCWalletApi
  8. NeutrinoHDWalletApi
  9. NeutrinoWalletApi
  10. WalletApi
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DLCWallet(walletApi: Wallet)(implicit dlcConfig: DLCAppConfig, walletConfig: WalletAppConfig)

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 acceptDLCOffer(offer: DLCOffer, peerAddressOpt: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCAccept]

    Creates a DLCAccept from the default Segwit account from a given offer, if one has already been created with the given parameters then that one will be returned instead.

    Creates a DLCAccept from the default Segwit account from a given offer, if one has already been created with the given parameters then that one will be returned instead.

    This is the first step of the recipient

    Definition Classes
    DLCWalletDLCWalletApi
  5. def acceptDLCOffer(dlcOfferTLV: DLCOfferTLV, peerAddress: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCAccept]
    Definition Classes
    DLCWalletApi
  6. def accountHandling: AccountHandlingApi
    Definition Classes
    DLCWalletWalletApi
  7. lazy val actionBuilder: DLCActionBuilder
    Attributes
    protected
  8. def addDLCSigs(sign: DLCSign): Future[DLCDb]

    Inputs the received signatures for a DLC into our database

    Inputs the received signatures for a DLC into our database

    This is the second step of the recipient

    Definition Classes
    DLCWalletDLCWalletApi
  9. def addDLCSigs(signTLV: DLCSignTLV): Future[DLCDb]
    Definition Classes
    DLCWalletDLCWalletApi
  10. def addFundingSigs(sign: DLCSign): Future[Vector[DLCFundingInputDb]]

    Takes a DLCSign an inserts the funding signatures into the database This is the only way one should insert sigs to the database

  11. def addressHandling: AddressHandlingApi
    Definition Classes
    DLCWalletWalletApi
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def broadcastDLCFundingTx(contractId: ByteVector): Future[Transaction]
    Definition Classes
    DLCWalletDLCWalletApi
  14. def broadcastTransaction(transaction: Transaction): Future[Unit]
    Definition Classes
    DLCWalletWalletApi
  15. def cancelDLC(dlcId: Sha256Digest): Future[Unit]

    If the DLC has not reached the Signed state, it can be canceled.

    If the DLC has not reached the Signed state, it can be canceled. Canceling a DLC deletes all data about it from the database, as well as unreserves the utxos associated with it.

    Definition Classes
    DLCWalletDLCWalletApi
  16. val chainQueryApi: ChainQueryApi
    Definition Classes
    DLCWalletWalletApi
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. def createDLCOffer(contractInfo: ContractInfo, collateral: Satoshis, feeRateOpt: Option[SatoshisPerVirtualByte], locktime: UInt32, refundLocktime: UInt32, peerAddressOpt: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCOffer]

    Creates a DLCOffer, if one has already been created with the given parameters then that one will be returned instead.

    Creates a DLCOffer, if one has already been created with the given parameters then that one will be returned instead.

    This is the first step of the initiator

    Definition Classes
    DLCWalletDLCWalletApi
  19. def createDLCOffer(contractInfo: ContractInfo, collateral: Satoshis, feeRateOpt: Option[SatoshisPerVirtualByte], refundLT: UInt32, peerAddressOpt: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCOffer]
    Definition Classes
    DLCWalletDLCWalletApi
  20. def createDLCOffer(contractInfoTLV: ContractInfoTLV, collateral: Satoshis, feeRateOpt: Option[SatoshisPerVirtualByte], locktime: UInt32, refundLT: UInt32, peerAddressOpt: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCOffer]
    Definition Classes
    DLCWalletApi
  21. def createDLCOffer(contractInfoTLV: ContractInfoTLV, collateral: Satoshis, feeRateOpt: Option[SatoshisPerVirtualByte], refundLT: UInt32, peerAddressOpt: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCOffer]
    Definition Classes
    DLCWalletApi
  22. val creationTime: Instant
    Definition Classes
    DLCWalletWalletApi
  23. implicit val dlcConfig: DLCAppConfig
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def executeDLC(contractId: ByteVector, oracleSigs: Vector[OracleSignatures]): Future[Option[Transaction]]

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Definition Classes
    DLCWalletDLCWalletApi
  26. def executeDLC(dlcDb: DLCDb, sigs: Seq[OracleAttestmentTLV]): Future[Option[Transaction]]
  27. def executeDLC(contractId: ByteVector, sigs: Seq[OracleAttestmentTLV]): Future[Option[Transaction]]

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Definition Classes
    DLCWalletDLCWalletApi
  28. def executeDLC(contractId: ByteVector, oracleSig: OracleSignatures): Future[Option[Transaction]]

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Definition Classes
    DLCWalletApi
  29. def executeDLC(contractId: ByteVector, oracleSig: OracleAttestmentTLV): Future[Option[Transaction]]

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Creates the CET for the given contractId and oracle signature, does not broadcast it

    Definition Classes
    DLCWalletApi
  30. def executeDLCRefund(contractId: ByteVector): Future[Transaction]

    Creates the refund transaction for the given contractId, does not broadcast it

    Creates the refund transaction for the given contractId, does not broadcast it

    Definition Classes
    DLCWalletDLCWalletApi
  31. def feeRateApi: FeeRateApi
    Definition Classes
    DLCWalletWalletApi
  32. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  33. def findDLC(dlcId: Sha256Digest): Future[Option[DLCStatus]]
    Definition Classes
    DLCWalletDLCWalletApi
  34. def findDLCByTemporaryContractId(tempContractId: Sha256Digest): Future[Option[DLCStatus]]
    Definition Classes
    DLCWalletDLCWalletApi
  35. def fundTxHandling: FundTransactionHandlingApi
    Definition Classes
    DLCWalletWalletApi
  36. def getBalance()(implicit ec: ExecutionContext): Future[CurrencyUnit]

    Gets the sum of all UTXOs in this wallet

    Gets the sum of all UTXOs in this wallet

    Definition Classes
    WalletApi
  37. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def getConfirmedBalance(): Future[CurrencyUnit]

    Gets the sum of all confirmed UTXOs in this wallet

    Gets the sum of all confirmed UTXOs in this wallet

    Definition Classes
    DLCWalletWalletApi
  39. def getDLCFundingTx(contractId: ByteVector): Future[Transaction]
    Definition Classes
    DLCWalletDLCWalletApi
  40. def getDLCOffer(dlcId: Sha256Digest): Future[Option[DLCOffer]]
    Definition Classes
    DLCWalletDLCWalletApi
  41. def getFeeRate(): Future[FeeUnit]
    Definition Classes
    WalletApi
  42. def getInfo(): Future[WalletInfo]
    Definition Classes
    DLCWalletWalletApi
  43. def getNewAddress(): Future[BitcoinAddress]
    Definition Classes
    DLCWalletWalletApi
  44. def getNewChangeAddress(): Future[BitcoinAddress]
    Definition Classes
    DLCWalletWalletApi
  45. def getSyncDescriptorOpt(): Future[Option[SyncHeightDescriptor]]
    Definition Classes
    DLCWalletWalletApi
  46. def getSyncState(): Future[BlockSyncState]
    Definition Classes
    DLCWalletWalletApi
  47. def getUnconfirmedBalance(): Future[CurrencyUnit]

    Gets the sum of all unconfirmed UTXOs in this wallet

    Gets the sum of all unconfirmed UTXOs in this wallet

    Definition Classes
    DLCWalletWalletApi
  48. def getWalletAccounting(): Future[DLCWalletAccounting]

    Retrieves accounting and financial metrics for the entire dlc wallet

    Retrieves accounting and financial metrics for the entire dlc wallet

    Definition Classes
    DLCWalletDLCWalletApi
  49. def getWalletName(): Future[String]
    Definition Classes
    DLCWalletWalletApi
  50. def incomingOfferHandling: IncomingDLCOfferHandlingApi
    Definition Classes
    DLCWalletDLCWalletApi
  51. def isEmpty(): Future[Boolean]

    Checks if the wallet contains any data

    Checks if the wallet contains any data

    Definition Classes
    DLCWalletWalletApi
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def isRescanning(): Future[Boolean]
    Definition Classes
    DLCWalletWalletApi
  54. def listDLCs(): Future[Vector[DLCStatus]]
    Definition Classes
    DLCWalletDLCWalletApi
  55. def listDLCs(states: Vector[DLCState]): Future[Vector[DLCStatus]]

    Fetches all DLCs with the given set of states

    Fetches all DLCs with the given set of states

    Definition Classes
    DLCWalletDLCWalletApi
  56. def listDLCsByContact(contactId: InetSocketAddress): Future[Vector[DLCStatus]]
    Definition Classes
    DLCWalletDLCWalletApi
  57. def logger: Logger
    Definition Classes
    BitcoinSLogger
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. val nodeApi: NodeApi
    Definition Classes
    DLCWalletWalletApi
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. def processCompactFilter(blockHash: DoubleSha256DigestBE, blockFilter: GolombFilter): Future[NeutrinoHDWalletApi]
    Definition Classes
    NeutrinoWalletApi
  63. def processCompactFilters(blockFilters: Vector[(DoubleSha256DigestBE, GolombFilter)]): Future[NeutrinoHDWalletApi]
    Definition Classes
    DLCWalletNeutrinoWalletApi
  64. def productElementNames: Iterator[String]
    Definition Classes
    Product
  65. def registerDLCAccept(accept: DLCAccept): Future[(DLCDb, Vector[DLCCETSignaturesDb])]
  66. lazy val rescanHandling: RescanHandlingApi
    Definition Classes
    DLCWalletWalletApi
  67. def sendFundsHandling: SendFundsHandlingApi
    Definition Classes
    DLCWalletWalletApi
  68. def signDLC(accept: DLCAccept): Future[DLCSign]

    Creates signatures for the DLCs CETs and Funding Inputs

    Creates signatures for the DLCs CETs and Funding Inputs

    This is the second step of the initiator

    Definition Classes
    DLCWalletDLCWalletApi
  69. def signDLC(acceptTLV: DLCAcceptTLV): Future[DLCSign]
    Definition Classes
    DLCWalletDLCWalletApi
  70. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  71. lazy val transactionProcessing: DLCTransactionProcessing
    Definition Classes
    DLCWalletWalletApi
  72. def utxoHandling: UtxoHandlingApi
    Definition Classes
    DLCWalletWalletApi
  73. def verifyCETSigs(sign: DLCSign): Future[Option[Boolean]]

    Verify CET sigs for the given sign message if it exists If it doesnt not exist, return None

  74. def verifyCETSigs(accept: DLCAccept): Future[Option[Boolean]]

    Verify CET sigs for the given accept message if it exists If it doesnt not exist, return None

  75. def verifyFundingSigs(inputs: Vector[DLCFundingInputDb], sign: DLCSign): Future[Option[Boolean]]
  76. def verifyRefundSig(sign: DLCSign): Future[Option[Boolean]]
  77. def verifyRefundSig(accept: DLCAccept): Future[Option[Boolean]]
  78. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  80. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  81. val walletApi: Wallet
    Definition Classes
    DLCWalletDLCWalletApi
  82. implicit val walletConfig: WalletAppConfig

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BitcoinSLogger

Inherited from DLCNeutrinoHDWalletApi

Inherited from DLCWalletApi

Inherited from NeutrinoHDWalletApi

Inherited from NeutrinoWalletApi

Inherited from WalletApi

Inherited from AnyRef

Inherited from Any

Ungrouped