Updated on 2026-08-14
This commit is contained in:
parent
154308b973
commit
e51453c99b
15 changed files with 173 additions and 68 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue