Updated on 2026-08-14
This commit is contained in:
parent
7457d4de1a
commit
4a3ca5b489
10 changed files with 40 additions and 2 deletions
|
|
@ -55,6 +55,8 @@ internal object BlockchainProviderTypesConverter :
|
|||
"solana" -> ProviderType.Solana.Official
|
||||
"ton" -> ProviderType.Ton.TonCentral
|
||||
"tron" -> ProviderType.Tron.TronGrid
|
||||
"dwellirBittensor" -> ProviderType.Bittensor.Dwellir
|
||||
"onfinalityBittensor" -> ProviderType.Bittensor.Onfinality
|
||||
else -> {
|
||||
Timber.e("$blockchain private provider ($name) is not supported")
|
||||
null
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ internal object BlockchainSDKConfigConverter : Converter<ConfigValueModel, Block
|
|||
chiaFireAcademyApiKey = value.chiaFireAcademyApiKey,
|
||||
chiaTangemApiKey = value.chiaTangemApiKey,
|
||||
polygonScanApiKey = value.polygonScanApiKey,
|
||||
bittensorDwellirApiKey = value.bittensorDwellirApiKey,
|
||||
bittensorOnfinalityApiKey = value.bittensorOnfinalityKey,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"koinos" -> Blockchain.Koinos
|
||||
"koinos/test" -> Blockchain.KoinosTestnet
|
||||
"joystream" -> Blockchain.Joystream
|
||||
"bittensor" -> Blockchain.Bittensor
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -235,6 +236,7 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Koinos -> "koinos"
|
||||
Blockchain.KoinosTestnet -> "koinos/test"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -310,6 +312,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Base, Blockchain.BaseTestnet -> "base-ethereum"
|
||||
Blockchain.Koinos, Blockchain.KoinosTestnet -> "koinos"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue