Outgoing Payments Db
interface OutgoingPaymentsDb
Content copied to clipboard
Functions
add Outgoing Lightning Parts
Link copied to clipboard
abstract suspend fun addOutgoingLightningParts(parentId: UUID, parts: List<OutgoingPayment.LightningPart>)
Content copied to clipboard
Add new partial payments to a pending outgoing payment.
add Outgoing Payment
Link copied to clipboard
abstract suspend fun addOutgoingPayment(outgoingPayment: OutgoingPayment)
Content copied to clipboard
Add a new pending outgoing payment (not yet settled).
complete Outgoing Lightning Part
Link copied to clipboard
abstract suspend fun completeOutgoingLightningPart(partId: UUID, preimage: ByteVector32, completedAt: Long = currentTimestampMillis())
Content copied to clipboard
Mark an outgoing payment part as succeeded. This should not update the parent payment, since some parts may still be pending.
abstract suspend fun completeOutgoingLightningPart(partId: UUID, failure: Either<ChannelException, FailureMessage>, completedAt: Long = currentTimestampMillis())
Content copied to clipboard
Mark an outgoing payment part as failed.
complete Outgoing Payment For Closing
Link copied to clipboard
abstract suspend fun completeOutgoingPaymentForClosing(id: UUID, parts: List<OutgoingPayment.ClosingTxPart>, completedAt: Long = currentTimestampMillis())
Content copied to clipboard
Mark an outgoing payment as completed for closing a Lightning channel on-chain with a list of on-chain txs.
complete Outgoing Payment Offchain
Link copied to clipboard
abstract suspend fun completeOutgoingPaymentOffchain(id: UUID, preimage: ByteVector32, completedAt: Long = currentTimestampMillis())
Content copied to clipboard
Mark an outgoing payment as completed over Lightning.
abstract suspend fun completeOutgoingPaymentOffchain(id: UUID, finalFailure: FinalFailure, completedAt: Long = currentTimestampMillis())
Content copied to clipboard
Mark an outgoing payment as failed.
get Outgoing Payment
Link copied to clipboard
Get information about an outgoing payment (settled or not).
get Outgoing Payment From Part Id
Link copied to clipboard
abstract suspend fun getOutgoingPaymentFromPartId(partId: UUID): OutgoingPayment?
Content copied to clipboard
Get information about an outgoing payment from the id of one of its parts.
list Outgoing Payments
Link copied to clipboard
abstract suspend fun listOutgoingPayments(paymentHash: ByteVector32): List<OutgoingPayment>
Content copied to clipboard
List all the outgoing payment attempts that tried to pay the given payment hash.
abstract suspend fun listOutgoingPayments(count: Int, skip: Int, filters: Set<PaymentTypeFilter> = setOf()): List<OutgoingPayment>
Content copied to clipboard
List outgoing payments (with most recent payments first).
Inheritors
PaymentsDb
Link copied to clipboard