Updated on 2026-08-14
This commit is contained in:
commit
85423227c4
390 changed files with 11140 additions and 1722 deletions
|
|
@ -138,6 +138,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"core/test" -> Blockchain.CoreTestnet
|
||||
"casper-network" -> Blockchain.Casper
|
||||
"casper-network/test" -> Blockchain.CasperTestnet
|
||||
"chiliz" -> Blockchain.Chiliz
|
||||
"chiliz/test" -> Blockchain.ChilizTestnet
|
||||
"xodex" -> Blockchain.Xodex
|
||||
"canxium" -> Blockchain.Canxium
|
||||
else -> null
|
||||
|
|
@ -277,6 +279,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.CasperTestnet -> "casper-network/test"
|
||||
Blockchain.Core -> "core"
|
||||
Blockchain.CoreTestnet -> "core/test"
|
||||
Blockchain.Chiliz -> "chiliz"
|
||||
Blockchain.ChilizTestnet -> "chiliz/test"
|
||||
Blockchain.Xodex -> "xodex"
|
||||
Blockchain.Canxium -> "canxium"
|
||||
}
|
||||
|
|
@ -368,6 +372,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.EnergyWebX, Blockchain.EnergyWebXTestnet -> "energy-web-token"
|
||||
Blockchain.Casper, Blockchain.CasperTestnet -> "casper-network"
|
||||
Blockchain.Core, Blockchain.CoreTestnet -> "coredaoorg"
|
||||
Blockchain.Chiliz, Blockchain.ChilizTestnet -> "chiliz"
|
||||
Blockchain.Xodex -> "xodex"
|
||||
Blockchain.Canxium -> "canxium"
|
||||
}
|
||||
|
|
@ -411,5 +416,4 @@ private val excludedBlockchains = listOf(
|
|||
Blockchain.Unknown,
|
||||
Blockchain.Nexa,
|
||||
Blockchain.NexaTestnet,
|
||||
Blockchain.Xodex,
|
||||
)
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.tangem.sdk.api
|
||||
|
||||
import androidx.activity.ComponentActivity
|
||||
import com.tangem.TangemSdk
|
||||
import com.tangem.operations.backup.BackupService
|
||||
import com.tangem.sdk.extensions.init
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
class BackupServiceHolder {
|
||||
|
||||
lateinit var backupService: WeakReference<BackupService>
|
||||
private set
|
||||
|
||||
fun createAndSetService(tangemSdk: TangemSdk, activity: ComponentActivity) {
|
||||
backupService = WeakReference(BackupService.init(tangemSdk, activity))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue