Updated on 2026-08-14
This commit is contained in:
parent
db6157cae4
commit
99f62f79ee
35 changed files with 128 additions and 109 deletions
|
|
@ -22,6 +22,8 @@ dependencies {
|
|||
implementation(projects.core.analytics)
|
||||
// endregion
|
||||
|
||||
api(projects.domain.models)
|
||||
|
||||
// region AndroidX libraries
|
||||
implementation(deps.androidx.datastore)
|
||||
// endregion
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
package com.tangem.blockchainsdk.utils
|
||||
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.domain.models.network.Network
|
||||
|
||||
/** Converts [Network] to [Blockchain] */
|
||||
fun Network.toBlockchain(): Blockchain = id.toBlockchain()
|
||||
|
||||
/** Converts [Network.ID] to [Blockchain] */
|
||||
fun Network.ID.toBlockchain(): Blockchain = Blockchain.fromId(id = rawId.value)
|
||||
Loading…
Add table
Add a link
Reference in a new issue