Updated on 2026-08-14
This commit is contained in:
parent
1451f23cb2
commit
ff2907e26e
3 changed files with 14 additions and 3 deletions
|
|
@ -118,6 +118,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"koinos/test" -> Blockchain.KoinosTestnet
|
||||
"joystream" -> Blockchain.Joystream
|
||||
"bittensor" -> Blockchain.Bittensor
|
||||
"filecoin" -> Blockchain.Filecoin
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -237,6 +238,7 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.KoinosTestnet -> "koinos/test"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -313,6 +315,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Koinos, Blockchain.KoinosTestnet -> "koinos"
|
||||
Blockchain.Joystream -> "joystream"
|
||||
Blockchain.Bittensor -> "bittensor"
|
||||
Blockchain.Filecoin -> "filecoin"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -325,7 +328,9 @@ fun Blockchain.amountToCreateAccount(token: Token? = null): BigDecimal? {
|
|||
Blockchain.Stellar -> if (token?.symbol == NODL) BigDecimal(NODL_AMOUNT_TO_CREATE_ACCOUNT) else BigDecimal.ONE
|
||||
Blockchain.XRP -> BigDecimal.TEN
|
||||
Blockchain.Near, Blockchain.NearTestnet -> 0.00182.toBigDecimal()
|
||||
Blockchain.Aptos, Blockchain.AptosTestnet -> BigDecimal.ZERO
|
||||
Blockchain.Aptos, Blockchain.AptosTestnet,
|
||||
Blockchain.Filecoin,
|
||||
-> BigDecimal.ZERO
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -343,4 +348,5 @@ private val excludedBlockchains = listOf(
|
|||
Blockchain.NexaTestnet,
|
||||
Blockchain.Mantle,
|
||||
Blockchain.MantleTestnet,
|
||||
Blockchain.Filecoin,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue