rename LNbitsNodeAliasrepository.kt to NodeAliasServiceRepository.kt
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import kotlinx.coroutines.flow.StateFlow
|
||||
* [NodeAliasRepository] backed by [NodeAliasService], which queries
|
||||
* mempool.space then 1ml.com and caches results in SharedPreferences.
|
||||
*/
|
||||
class LNbitsNodeAliasRepository(
|
||||
class NodeAliasServiceRepository(
|
||||
private val service: NodeAliasService
|
||||
) : NodeAliasRepository {
|
||||
override val aliases: StateFlow<Map<String, String>>
|
||||
@@ -6,8 +6,8 @@ import androidx.lifecycle.ViewModelProvider
|
||||
import com.bitcointxoko.gudariwallet.api.LNbitsClient
|
||||
import com.bitcointxoko.gudariwallet.api.NodeAliasClient
|
||||
import com.bitcointxoko.gudariwallet.data.BalancePrefsStore
|
||||
import com.bitcointxoko.gudariwallet.data.LNbitsNodeAliasRepository
|
||||
import com.bitcointxoko.gudariwallet.data.FiatDataStore
|
||||
import com.bitcointxoko.gudariwallet.data.NodeAliasServiceRepository
|
||||
import com.bitcointxoko.gudariwallet.data.LNbitsWalletRepository
|
||||
import com.bitcointxoko.gudariwallet.data.LnurlCacheRepository
|
||||
import com.bitcointxoko.gudariwallet.data.PaymentCacheRepository
|
||||
@@ -28,9 +28,8 @@ class WalletViewModelFactory(private val app: Application) : ViewModelProvider.F
|
||||
val nodeAliasSvc = NodeAliasService(apiClient = NodeAliasClient(), context = app)
|
||||
val lnurlCache = LnurlCacheRepository(app)
|
||||
val paymentCache = PaymentCacheRepository(app)
|
||||
|
||||
val aliasRepo = LNbitsNodeAliasRepository(nodeAliasSvc)
|
||||
val fiatDataStore = FiatDataStore(app)
|
||||
val aliasRepo = NodeAliasServiceRepository(nodeAliasSvc)
|
||||
val repo = LNbitsWalletRepository(api = api, secrets = secrets)
|
||||
val balancePrefs = BalancePrefsStore(app)
|
||||
val balanceVm = BalanceViewModel(repo, balancePrefs)
|
||||
|
||||
Reference in New Issue
Block a user