feat: localisation with lyricist
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.bitcointxoko.gudariwallet.ui
|
||||
|
||||
import android.util.Log
|
||||
import androidx.annotation.VisibleForTesting
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.bitcointxoko.gudariwallet.api.LnurlScanResponse
|
||||
@@ -47,10 +46,33 @@ class WalletViewModel(
|
||||
val fiatCurrency: String? get() = fiatVm.fiatCurrency
|
||||
val receiveState: StateFlow<ReceiveState> get() = receiveVm.receiveState
|
||||
val navigateToReceive: SharedFlow<Unit> get() = receiveVm.navigateToReceive
|
||||
fun createInvoice(amountSats: Long, memo: String) = receiveVm.createInvoice(amountSats, memo)
|
||||
fun createInvoice(
|
||||
amountSats : Long,
|
||||
memo : String,
|
||||
failedToCreateInvoice : String,
|
||||
) = receiveVm.createInvoice(
|
||||
amountSats = amountSats,
|
||||
memo = memo,
|
||||
failedToCreateInvoice = failedToCreateInvoice,
|
||||
)
|
||||
fun resetReceiveState() = receiveVm.resetReceiveState()
|
||||
fun executeWithdraw(k1: String, callback: String, amountSats: Long, memo: String) =
|
||||
receiveVm.executeWithdraw(k1, callback, amountSats, memo)
|
||||
fun executeWithdraw(
|
||||
k1 : String,
|
||||
callback : String,
|
||||
amountSats : Long,
|
||||
memo : String,
|
||||
failedToCreateInvoice : String,
|
||||
withdrawRejected : String,
|
||||
withdrawFailed : String,
|
||||
) = receiveVm.executeWithdraw(
|
||||
k1 = k1,
|
||||
callback = callback,
|
||||
amountSats = amountSats,
|
||||
memo = memo,
|
||||
failedToCreateInvoice = failedToCreateInvoice,
|
||||
withdrawRejected = withdrawRejected,
|
||||
withdrawFailed = withdrawFailed,
|
||||
)
|
||||
val sendState: StateFlow<SendState> get() = sendVm.sendState
|
||||
fun refreshBalance() = balanceVm.refreshBalance()
|
||||
fun scan(rawInput: String) = sendVm.scan(rawInput)
|
||||
|
||||
Reference in New Issue
Block a user