case class DLCWallet(walletApi: Wallet)(implicit dlcConfig: DLCAppConfig, walletConfig: WalletAppConfig) extends DLCNeutrinoHDWalletApi with BitcoinSLogger with Product with Serializable
A Wallet with full DLC Functionality
- Alphabetic
- By Inheritance
- DLCWallet
- Serializable
- Product
- Equals
- BitcoinSLogger
- DLCNeutrinoHDWalletApi
- DLCWalletApi
- NeutrinoHDWalletApi
- NeutrinoWalletApi
- WalletApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DLCWallet(walletApi: Wallet)(implicit dlcConfig: DLCAppConfig, walletConfig: WalletAppConfig)
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
- 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
- DLCWallet → DLCWalletApi
- def acceptDLCOffer(dlcOfferTLV: DLCOfferTLV, peerAddress: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCAccept]
- Definition Classes
- DLCWalletApi
- def accountHandling: AccountHandlingApi
- lazy val actionBuilder: DLCActionBuilder
- Attributes
- protected
- 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
- DLCWallet → DLCWalletApi
- def addDLCSigs(signTLV: DLCSignTLV): Future[DLCDb]
- Definition Classes
- DLCWallet → DLCWalletApi
- 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
- def addressHandling: AddressHandlingApi
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def broadcastDLCFundingTx(contractId: ByteVector): Future[Transaction]
- Definition Classes
- DLCWallet → DLCWalletApi
- def broadcastTransaction(transaction: Transaction): Future[Unit]
- 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
- DLCWallet → DLCWalletApi
- val chainQueryApi: ChainQueryApi
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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
- DLCWallet → DLCWalletApi
- def createDLCOffer(contractInfo: ContractInfo, collateral: Satoshis, feeRateOpt: Option[SatoshisPerVirtualByte], refundLT: UInt32, peerAddressOpt: Option[InetSocketAddress], externalPayoutAddressOpt: Option[BitcoinAddress], externalChangeAddressOpt: Option[BitcoinAddress]): Future[DLCOffer]
- Definition Classes
- DLCWallet → DLCWalletApi
- 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
- 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
- val creationTime: Instant
- implicit val dlcConfig: DLCAppConfig
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- DLCWallet → DLCWalletApi
- def executeDLC(dlcDb: DLCDb, sigs: Seq[OracleAttestmentTLV]): Future[Option[Transaction]]
- 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
- DLCWallet → DLCWalletApi
- 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
- 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
- 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
- DLCWallet → DLCWalletApi
- def feeRateApi: FeeRateApi
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findDLC(dlcId: Sha256Digest): Future[Option[DLCStatus]]
- Definition Classes
- DLCWallet → DLCWalletApi
- def findDLCByTemporaryContractId(tempContractId: Sha256Digest): Future[Option[DLCStatus]]
- Definition Classes
- DLCWallet → DLCWalletApi
- def fundTxHandling: FundTransactionHandlingApi
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getConfirmedBalance(): Future[CurrencyUnit]
Gets the sum of all confirmed UTXOs in this wallet
- def getDLCFundingTx(contractId: ByteVector): Future[Transaction]
- Definition Classes
- DLCWallet → DLCWalletApi
- def getDLCOffer(dlcId: Sha256Digest): Future[Option[DLCOffer]]
- Definition Classes
- DLCWallet → DLCWalletApi
- def getFeeRate(): Future[FeeUnit]
- Definition Classes
- WalletApi
- def getInfo(): Future[WalletInfo]
- def getNewAddress(): Future[BitcoinAddress]
- def getNewChangeAddress(): Future[BitcoinAddress]
- def getSyncDescriptorOpt(): Future[Option[SyncHeightDescriptor]]
- def getSyncState(): Future[BlockSyncState]
- def getUnconfirmedBalance(): Future[CurrencyUnit]
Gets the sum of all unconfirmed UTXOs in this wallet
- 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
- DLCWallet → DLCWalletApi
- def getWalletName(): Future[String]
- def incomingOfferHandling: IncomingDLCOfferHandlingApi
- Definition Classes
- DLCWallet → DLCWalletApi
- def isEmpty(): Future[Boolean]
Checks if the wallet contains any data
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRescanning(): Future[Boolean]
- def listDLCs(): Future[Vector[DLCStatus]]
- Definition Classes
- DLCWallet → DLCWalletApi
- 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
- DLCWallet → DLCWalletApi
- def listDLCsByContact(contactId: InetSocketAddress): Future[Vector[DLCStatus]]
- Definition Classes
- DLCWallet → DLCWalletApi
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nodeApi: NodeApi
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def processCompactFilter(blockHash: DoubleSha256DigestBE, blockFilter: GolombFilter): Future[NeutrinoHDWalletApi]
- Definition Classes
- NeutrinoWalletApi
- def processCompactFilters(blockFilters: Vector[(DoubleSha256DigestBE, GolombFilter)]): Future[NeutrinoHDWalletApi]
- Definition Classes
- DLCWallet → NeutrinoWalletApi
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def registerDLCAccept(accept: DLCAccept): Future[(DLCDb, Vector[DLCCETSignaturesDb])]
- lazy val rescanHandling: RescanHandlingApi
- def sendFundsHandling: SendFundsHandlingApi
- 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
- DLCWallet → DLCWalletApi
- def signDLC(acceptTLV: DLCAcceptTLV): Future[DLCSign]
- Definition Classes
- DLCWallet → DLCWalletApi
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val transactionProcessing: DLCTransactionProcessing
- def utxoHandling: UtxoHandlingApi
- 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
- 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
- def verifyFundingSigs(inputs: Vector[DLCFundingInputDb], sign: DLCSign): Future[Option[Boolean]]
- def verifyRefundSig(sign: DLCSign): Future[Option[Boolean]]
- def verifyRefundSig(accept: DLCAccept): Future[Option[Boolean]]
- 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()
- val walletApi: Wallet
- Definition Classes
- DLCWallet → DLCWalletApi
- implicit val walletConfig: WalletAppConfig