feat: localisation with lyricist
This commit is contained in:
@@ -17,6 +17,7 @@ import com.bitcointxoko.gudariwallet.ui.balance.BalanceViewModel
|
||||
import com.bitcointxoko.gudariwallet.ui.clipboard.ClipboardViewModel
|
||||
import com.bitcointxoko.gudariwallet.ui.fiat.FiatViewModel
|
||||
import com.bitcointxoko.gudariwallet.ui.receive.ReceiveViewModel
|
||||
import com.bitcointxoko.gudariwallet.ui.send.SendStrings
|
||||
import com.bitcointxoko.gudariwallet.ui.send.SendViewModel
|
||||
import kotlinx.coroutines.flow.SharingStarted
|
||||
import kotlinx.coroutines.flow.stateIn
|
||||
@@ -75,15 +76,38 @@ class WalletViewModel(
|
||||
)
|
||||
val sendState: StateFlow<SendState> get() = sendVm.sendState
|
||||
fun refreshBalance() = balanceVm.refreshBalance()
|
||||
fun scan(rawInput: String) = sendVm.scan(rawInput)
|
||||
fun payBolt11(bolt11: String) = sendVm.payBolt11(bolt11)
|
||||
fun payLnurl(rawRes: LnurlScanResponse, lnurl: String, amountMsat: Long, comment: String?) =
|
||||
sendVm.payLnurl(rawRes, lnurl, amountMsat, comment)
|
||||
fun fetchLnurlInvoice(rawRes: LnurlScanResponse, lnurl: String, domain: String, amountMsat: Long, comment: String?) =
|
||||
sendVm.fetchLnurlInvoice(rawRes, lnurl, domain, amountMsat, comment)
|
||||
fun payLnurlInvoice(state: SendState.LnurlInvoiceReady) = sendVm.payLnurlInvoice(state)
|
||||
fun requestPayment(activity: FragmentActivity, subtitle: String, pay: () -> Unit) =
|
||||
sendVm.requestPayment(activity, subtitle, pay)
|
||||
fun scan(rawInput: String, strings: SendStrings) =
|
||||
sendVm.scan(rawInput, strings)
|
||||
|
||||
fun payBolt11(bolt11: String, strings: SendStrings) =
|
||||
sendVm.payBolt11(bolt11, strings)
|
||||
|
||||
fun payLnurl(
|
||||
rawRes : LnurlScanResponse,
|
||||
lnurl : String,
|
||||
amountMsat: Long,
|
||||
comment : String?,
|
||||
strings : SendStrings,
|
||||
) = sendVm.payLnurl(rawRes, lnurl, amountMsat, comment, strings)
|
||||
|
||||
fun fetchLnurlInvoice(
|
||||
rawRes : LnurlScanResponse,
|
||||
lnurl : String,
|
||||
domain : String,
|
||||
amountMsat: Long,
|
||||
comment : String?,
|
||||
strings : SendStrings,
|
||||
) = sendVm.fetchLnurlInvoice(rawRes, lnurl, domain, amountMsat, comment, strings)
|
||||
|
||||
fun payLnurlInvoice(state: SendState.LnurlInvoiceReady, strings: SendStrings) =
|
||||
sendVm.payLnurlInvoice(state, strings)
|
||||
|
||||
fun requestPayment(
|
||||
activity : FragmentActivity,
|
||||
subtitle : String,
|
||||
strings : SendStrings,
|
||||
pay : () -> Unit,
|
||||
) = sendVm.requestPayment(activity, subtitle, strings, pay)
|
||||
fun resetSendState() = sendVm.resetSendState()
|
||||
|
||||
val lightningAddress: StateFlow<String?> = lnAddressStore.lightningAddressFlow
|
||||
|
||||
Reference in New Issue
Block a user