Package fr. acinq. lightning. db
Types
Channel Closing Type
Link copied to clipboard
Channels Db
Link copied to clipboard
interface ChannelsDb
Content copied to clipboard
Hop Desc
Link copied to clipboard
data class HopDesc(nodeId: PublicKey, nextNodeId: PublicKey, shortChannelId: ShortChannelId?)
Content copied to clipboard
Incoming Payment
Link copied to clipboard
data class IncomingPayment(preimage: ByteVector32, origin: IncomingPayment.Origin, received: IncomingPayment.Received?, createdAt: Long) : WalletPayment
Content copied to clipboard
An incoming payment received by this node. At first it is in a pending state, then will become either a success (if we receive a matching payment) or a failure (if the payment request expires).
Incoming Payments Db
Link copied to clipboard
interface IncomingPaymentsDb
Content copied to clipboard
In Memory Channels Db
Link copied to clipboard
In Memory Databases
Link copied to clipboard
data class InMemoryDatabases(channels: InMemoryChannelsDb, payments: InMemoryPaymentsDb) : Databases
Content copied to clipboard
In-memory implementations of the database components. This should only be used in tests: applications should inject their own implementations depending on the database backend available on the platform.
In Memory Payments Db
Link copied to clipboard
Outgoing Payment
Link copied to clipboard
data class OutgoingPayment(id: UUID, recipientAmount: MilliSatoshi, recipient: PublicKey, details: OutgoingPayment.Details, parts: List<OutgoingPayment.Part>, status: OutgoingPayment.Status, createdAt: Long) : WalletPayment
Content copied to clipboard
An outgoing payment sent by this node. The payment may be split in multiple parts, which may fail, be retried, and then either succeed or fail.
Outgoing Payments Db
Link copied to clipboard
interface OutgoingPaymentsDb
Content copied to clipboard
Payments Db
Link copied to clipboard
Payment Type Filter
Link copied to clipboard
Wallet Payment
Link copied to clipboard
sealed class WalletPayment
Content copied to clipboard
A payment made to or from the wallet.