Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-24 17:48:38 +03:00
parent 85803abc7f
commit 095c755362
194 changed files with 830 additions and 473 deletions

View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1,17 @@
plugins {
alias(deps.plugins.kotlin.jvm)
alias(deps.plugins.kotlin.serialization)
alias(deps.plugins.ksp)
id("configuration")
}
dependencies {
implementation(projects.domain.models)
implementation(deps.moshi.kotlin)
ksp(deps.moshi.kotlin.codegen)
implementation(deps.moshi.adapters)
implementation(deps.kotlin.serialization)
implementation(deps.jodatime)
implementation(projects.core.error)
}

View file

@ -0,0 +1,11 @@
package com.tangem.domain.walletmanager.model
import java.math.BigDecimal
/**
* Represents wallet blockchain rent
* @param rent Amount that will be charged in overtime if the blockchain does not have an amount greater than
* the [exemptionAmount]
* @param exemptionAmount Amount that should be on the blockchain balance not to pay rent
*/
data class RentData(val rent: BigDecimal, val exemptionAmount: BigDecimal)

View file

@ -0,0 +1,11 @@
package com.tangem.domain.walletmanager.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class SmartContractMethod(
@Json(name = "info") val info: String?,
@Json(name = "source") val source: String?,
@Json(name = "name") val name: String,
)

View file

@ -0,0 +1,12 @@
package com.tangem.domain.walletmanager.model
import com.tangem.domain.models.network.Network
data class TokenInfo(
val network: Network,
val name: String,
val symbol: String,
val contractAddress: String,
val decimals: Int,
val id: String? = null,
)