Updated on 2026-08-14
This commit is contained in:
parent
d8a05732ee
commit
90e783441c
14 changed files with 77 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit a4d66fbf83c88593cc398cff239cf168860ced7f
|
||||
Subproject commit 562562fb1815c63195aa3e1c49c33c5de36cb9fc
|
||||
|
|
@ -788,6 +788,16 @@
|
|||
"networkId": "casper-network/test"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "alephium",
|
||||
"name": "Alephium",
|
||||
"symbol": "ALPH",
|
||||
"networks": [
|
||||
{
|
||||
"networkId": "alephium/test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ internal val Blockchain.mercuryoNetwork: String?
|
|||
Blockchain.HederaTestnet -> null
|
||||
Blockchain.Aurora -> null
|
||||
Blockchain.AuroraTestnet -> null
|
||||
Blockchain.Alephium -> null
|
||||
Blockchain.AlephiumTestnet -> null
|
||||
Blockchain.Areon -> null
|
||||
Blockchain.AreonTestnet -> null
|
||||
Blockchain.PulseChain -> null
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ internal val Blockchain.moonPaySupportedCurrency: MoonPaySupportedCurrency?
|
|||
Core -> MoonPaySupportedCurrency(networkCode = "core", currencyCode = "core")
|
||||
Chiliz -> MoonPaySupportedCurrency(networkCode = "ethereum", currencyCode = "chz")
|
||||
ArbitrumTestnet -> null
|
||||
Alephium -> null
|
||||
AlephiumTestnet -> null
|
||||
AvalancheTestnet -> null
|
||||
BinanceTestnet -> null
|
||||
BSCTestnet -> null
|
||||
|
|
|
|||
|
|
@ -22,5 +22,9 @@
|
|||
{
|
||||
"name": "apechain",
|
||||
"version": "undefined"
|
||||
},
|
||||
{
|
||||
"name": "alephium",
|
||||
"version": "undefined"
|
||||
}
|
||||
]
|
||||
|
|
@ -83,6 +83,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"xodex" -> R.drawable.img_xodex_22
|
||||
"canxium" -> R.drawable.img_canxium_22
|
||||
"chiliz", "chiliz/test" -> R.drawable.img_chiliz_22
|
||||
"alephium", "alephium/test" -> R.drawable.img_alephium_22
|
||||
"clore-ai" -> R.drawable.img_clore_22
|
||||
"fact0rn" -> R.drawable.img_fact0rn_22
|
||||
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
|
||||
|
|
@ -170,6 +171,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
|
|||
"xodex" -> R.drawable.img_xodex_22
|
||||
"canxium" -> R.drawable.img_canxium_22
|
||||
"chiliz", "chiliz/test" -> R.drawable.img_chiliz_22
|
||||
"alephium", "alephium/test" -> R.drawable.img_alephium_22
|
||||
"clore-ai" -> R.drawable.img_clore_22
|
||||
"fact0rn" -> R.drawable.img_fact0rn_22
|
||||
"odyssey", "odyssey/test" -> R.drawable.img_odyssey_chain_22
|
||||
|
|
@ -260,6 +262,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
|
|||
"xodex" -> R.drawable.ic_xodex_22
|
||||
"canxium" -> R.drawable.ic_canxium_22
|
||||
"chiliz", "chiliz/test" -> R.drawable.ic_chiliz_22
|
||||
"alephium", "alephium/test" -> R.drawable.ic_alephium_22
|
||||
"clore-ai" -> R.drawable.ic_clore_22
|
||||
"fact0rn" -> R.drawable.ic_fact0rn_22
|
||||
"odyssey", "odyssey/test" -> R.drawable.ic_odyssey_chain_22
|
||||
|
|
|
|||
15
core/ui/src/main/res/drawable/ic_alephium_22.xml
Normal file
15
core/ui/src/main/res/drawable/ic_alephium_22.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<path
|
||||
android:pathData="M9.533,13.38C9.533,13.187 9.381,13.057 9.194,13.09L6.94,13.487C6.752,13.52 6.6,13.704 6.6,13.897V18.155C6.6,18.348 6.752,18.478 6.94,18.445L9.194,18.048C9.381,18.014 9.533,17.831 9.533,17.638V13.38Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="M15.4,3.846C15.4,3.653 15.248,3.523 15.061,3.556L12.806,3.953C12.619,3.986 12.467,4.17 12.467,4.363V8.621C12.467,8.814 12.619,8.944 12.806,8.911L15.061,8.514C15.248,8.48 15.4,8.297 15.4,8.104V3.846Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="M9.901,4.84C9.814,4.649 9.58,4.522 9.379,4.557L6.964,4.983C6.763,5.019 6.671,5.203 6.758,5.395L12.099,17.16C12.187,17.351 12.42,17.478 12.621,17.443L15.036,17.017C15.237,16.982 15.329,16.797 15.242,16.605L9.901,4.84Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
25
core/ui/src/main/res/drawable/img_alephium_22.xml
Normal file
25
core/ui/src/main/res/drawable/img_alephium_22.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<group>
|
||||
<clip-path
|
||||
android:pathData="M11,0L11,0A11,11 0,0 1,22 11L22,11A11,11 0,0 1,11 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"/>
|
||||
<path
|
||||
android:pathData="M11,0L11,0A11,11 0,0 1,22 11L22,11A11,11 0,0 1,11 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M0,0h22v22h-22z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:pathData="M9.533,13.38C9.533,13.187 9.381,13.057 9.194,13.09L6.94,13.487C6.752,13.52 6.6,13.704 6.6,13.897V18.155C6.6,18.348 6.752,18.478 6.94,18.445L9.194,18.048C9.381,18.014 9.533,17.831 9.533,17.638V13.38Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M15.4,3.846C15.4,3.653 15.248,3.523 15.061,3.556L12.806,3.953C12.619,3.986 12.467,4.17 12.467,4.363V8.621C12.467,8.814 12.619,8.944 12.806,8.911L15.061,8.514C15.248,8.48 15.4,8.297 15.4,8.104V3.846Z"
|
||||
android:fillColor="#FF3637"/>
|
||||
<path
|
||||
android:pathData="M9.901,4.84C9.814,4.649 9.58,4.522 9.379,4.557L6.964,4.983C6.763,5.019 6.671,5.203 6.758,5.395L12.099,17.16C12.187,17.351 12.42,17.478 12.621,17.443L15.036,17.017C15.237,16.982 15.329,16.797 15.242,16.605L9.901,4.84Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -167,6 +167,8 @@ private fun Blockchain.getSupportedTransactionExtras(): Network.TransactionExtra
|
|||
-> Network.TransactionExtrasType.MEMO
|
||||
// region Other blockchains
|
||||
Blockchain.Unknown,
|
||||
Blockchain.Alephium,
|
||||
Blockchain.AlephiumTestnet,
|
||||
Blockchain.Arbitrum,
|
||||
Blockchain.ArbitrumTestnet,
|
||||
Blockchain.Avalanche,
|
||||
|
|
|
|||
|
|
@ -199,6 +199,8 @@ data object Wallet2CardConfig : CardConfig {
|
|||
Blockchain.ApeChain -> EllipticCurve.Secp256k1
|
||||
Blockchain.ApeChainTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.KaspaTestnet -> EllipticCurve.Secp256k1
|
||||
Blockchain.Alephium -> EllipticCurve.Secp256k1
|
||||
Blockchain.AlephiumTestnet -> EllipticCurve.Secp256k1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -156,6 +156,8 @@ class Wallet2CardConfigTest {
|
|||
Blockchain.ApeChain to EllipticCurve.Secp256k1,
|
||||
Blockchain.ApeChainTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.KaspaTestnet to EllipticCurve.Secp256k1,
|
||||
Blockchain.Alephium to EllipticCurve.Secp256k1,
|
||||
Blockchain.AlephiumTestnet to EllipticCurve.Secp256k1,
|
||||
)
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -980,6 +980,8 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
Canxium,
|
||||
Chiliz,
|
||||
ChilizTestnet,
|
||||
Alephium,
|
||||
AlephiumTestnet,
|
||||
Clore,
|
||||
VanarChain,
|
||||
VanarChainTestnet,
|
||||
|
|
@ -1902,6 +1904,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
is Fee.Kaspa,
|
||||
is Fee.Tron,
|
||||
is Fee.VeChain,
|
||||
is Fee.Alephium,
|
||||
-> null
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ markdownComposeView = "0.5.4"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "develop-944"
|
||||
tangemBlockchainSdk = "develop-948"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-434"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ import java.math.BigDecimal
|
|||
@Suppress("ComplexMethod", "LongMethod")
|
||||
fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
||||
return when (networkId) {
|
||||
"alephium" -> Blockchain.Alephium
|
||||
"alephium/test" -> Blockchain.AlephiumTestnet
|
||||
"arbitrum-one" -> Blockchain.Arbitrum
|
||||
"arbitrum-one/test" -> Blockchain.ArbitrumTestnet
|
||||
"avalanche", "avalanche-2" -> Blockchain.Avalanche
|
||||
|
|
@ -165,6 +167,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
fun Blockchain.toNetworkId(): String {
|
||||
return when (this) {
|
||||
Blockchain.Unknown -> "unknown"
|
||||
Blockchain.Alephium -> "alephium"
|
||||
Blockchain.AlephiumTestnet -> "alephium/test"
|
||||
Blockchain.Arbitrum -> "arbitrum-one"
|
||||
Blockchain.ArbitrumTestnet -> "arbitrum-one/test"
|
||||
Blockchain.Avalanche -> "avalanche"
|
||||
|
|
@ -328,6 +332,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Stellar, Blockchain.StellarTestnet -> "stellar"
|
||||
Blockchain.Cardano -> "cardano"
|
||||
Blockchain.Polygon, Blockchain.PolygonTestnet -> NEW_POLYGON_NAME
|
||||
Blockchain.Alephium, Blockchain.AlephiumTestnet -> "alephium"
|
||||
Blockchain.Arbitrum, Blockchain.ArbitrumTestnet -> "arbitrum-one"
|
||||
Blockchain.Avalanche, Blockchain.AvalancheTestnet -> "avalanche-2"
|
||||
Blockchain.Solana, Blockchain.SolanaTestnet -> "solana"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue