commonMain.fr.acinq.lightning.db.ChannelsDb.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightning-kmp-jvm Show documentation
Show all versions of lightning-kmp-jvm Show documentation
A Kotlin Multiplatform implementation of the Lightning Network
package fr.acinq.lightning.db
import fr.acinq.bitcoin.ByteVector32
import fr.acinq.lightning.CltvExpiry
import fr.acinq.lightning.channel.states.PersistedChannelState
interface ChannelsDb {
suspend fun addOrUpdateChannel(state: PersistedChannelState)
suspend fun removeChannel(channelId: ByteVector32)
suspend fun listLocalChannels(): List
suspend fun addHtlcInfo(channelId: ByteVector32, commitmentNumber: Long, paymentHash: ByteVector32, cltvExpiry: CltvExpiry)
suspend fun listHtlcInfos(channelId: ByteVector32, commitmentNumber: Long): List>
fun close()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy