Updated on 2026-08-14
This commit is contained in:
parent
0ac390ef93
commit
f0c92b05cb
11 changed files with 243 additions and 182 deletions
|
|
@ -1,7 +1,7 @@
|
|||
package com.tangem.lib.crypto
|
||||
|
||||
import com.tangem.lib.crypto.models.Currency
|
||||
import com.tangem.lib.crypto.models.ProxyAmount
|
||||
import com.tangem.lib.crypto.models.ProxyFee
|
||||
import com.tangem.lib.crypto.models.ProxyNetworkInfo
|
||||
import com.tangem.lib.crypto.models.transactions.SendTxResult
|
||||
import java.math.BigDecimal
|
||||
|
|
@ -12,7 +12,7 @@ interface TransactionManager {
|
|||
suspend fun sendApproveTransaction(
|
||||
networkId: String,
|
||||
feeAmount: BigDecimal,
|
||||
estimatedGas: Int,
|
||||
gasLimit: Int,
|
||||
destinationAddress: String,
|
||||
dataToSign: String,
|
||||
): SendTxResult
|
||||
|
|
@ -23,7 +23,7 @@ interface TransactionManager {
|
|||
networkId: String,
|
||||
amountToSend: BigDecimal,
|
||||
feeAmount: BigDecimal,
|
||||
estimatedGas: Int,
|
||||
gasLimit: Int,
|
||||
destinationAddress: String,
|
||||
dataToSign: String,
|
||||
isSwap: Boolean,
|
||||
|
|
@ -36,7 +36,8 @@ interface TransactionManager {
|
|||
amountToSend: BigDecimal,
|
||||
currencyToSend: Currency,
|
||||
destinationAddress: String,
|
||||
): ProxyAmount
|
||||
data: String?,
|
||||
): ProxyFee
|
||||
|
||||
@Throws(IllegalStateException::class)
|
||||
fun getNativeTokenDecimals(networkId: String): Int
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
package com.tangem.lib.crypto.models
|
||||
|
||||
import java.math.BigInteger
|
||||
|
||||
data class ProxyFee(
|
||||
val gasLimit: BigInteger,
|
||||
val fee: ProxyAmount,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue