-
Notifications
You must be signed in to change notification settings - Fork 9
/
Access.kt
35 lines (28 loc) · 890 Bytes
/
Access.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.example.umlandowallet.data.remote
import com.example.umlandowallet.data.OnchainWallet
import org.bitcoindevkit.*
import org.ldk.structs.ChainMonitor
import org.ldk.structs.ChannelManager
interface Access {
suspend fun sync(): Unit
suspend fun syncWallet(onchainWallet: OnchainWallet): Unit
suspend fun syncBestBlockConnected(
channelManager: ChannelManager,
chainMonitor: ChainMonitor
): Unit
suspend fun syncTransactionConfirmed(
relevantTxIds: Array<ByteArray>,
channelManager: ChannelManager,
chainMonitor: ChainMonitor
): Unit
suspend fun syncTransactionsUnconfirmed(
relevantTxIds: Array<ByteArray>,
channelManager: ChannelManager,
chainMonitor: ChainMonitor
): Unit
companion object {
fun create(): Access {
return AccessImpl()
}
}
}