Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-30 12:50:32 +03:00
parent 154308b973
commit e51453c99b
15 changed files with 173 additions and 68 deletions

View file

@ -20,6 +20,7 @@ import kotlinx.serialization.Serializable
* currency (for those blockchains that have FeeResource instead of a standard type of fee)
* @property canHandleTokens indicates whether the network can handle tokens
* @property transactionExtrasType the type of extras supported for sending a transaction
* @property nameResolvingType the type of on-chain name resolution supported by the network (e.g., ENS, SNS etc)
*/
@Serializable
data class Network(
@ -33,6 +34,7 @@ data class Network(
val hasFiatFeeRate: Boolean,
val canHandleTokens: Boolean,
val transactionExtrasType: TransactionExtrasType,
val nameResolvingType: NameResolvingType,
) {
/** Raw ID */
@ -161,4 +163,16 @@ data class Network(
-> true
}
}
/**
* Represents the type of on-chain name resolution supported by the network.
*/
enum class NameResolvingType {
/** No name resolution supported */
NONE,
/** Ethereum Name Service (ENS) */
ENS,
}
}