Updated on 2026-08-14

This commit is contained in:
Tangem 2025-06-27 11:27:48 +04:00
parent d1c13037e0
commit 6626b53394
8 changed files with 85 additions and 53 deletions

View file

@ -0,0 +1,9 @@
package com.tangem.domain.walletconnect.model
import com.tangem.domain.tokens.model.Amount
data class WcApprovedAmount(
val amount: Amount?,
val chainId: Int?,
val logoUrl: String?,
)

View file

@ -1,8 +1,8 @@
package com.tangem.domain.walletconnect.usecase.method
import com.tangem.blockchain.common.Amount
import com.tangem.blockchain.common.TransactionData
import com.tangem.blockchain.common.transaction.Fee
import com.tangem.domain.walletconnect.model.WcApprovedAmount
/**
* Base UseCase for wc methods with single TransactionData
@ -40,10 +40,10 @@ interface WcMutableFee {
/**
* Wc Approval Method
* If [Amount] is null it means unlimited
* If [WcApprovedAmount.amount] is null it means unlimited
* [updateAmount] triggered a new [TransactionData] emit
*/
interface WcApproval {
fun getAmount(): Amount?
fun updateAmount(amount: Amount?)
fun getAmount(): WcApprovedAmount?
fun updateAmount(amount: WcApprovedAmount?)
}