Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-30 19:50:17 +05:00
parent e817b032f4
commit 1976f57045
6 changed files with 51 additions and 1 deletions

View file

@ -708,6 +708,16 @@
"networkId": "cyber/test"
}
]
},
{
"id": "sei-network",
"name": "Sei Network",
"symbol": "SEI",
"networks": [
{
"networkId": "sei-network/test"
}
]
}
]
}

View file

@ -73,6 +73,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"blast", "blast/test" -> R.drawable.img_blast_22
"filecoin" -> R.drawable.img_filecoin_22
"cyber", "cyber/test" -> R.drawable.img_cyber_22
"sei", "sei/test" -> R.drawable.img_sei_22
else -> R.drawable.ic_alert_24
}
}
@ -147,6 +148,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
"blast", "blast/test" -> R.drawable.img_blast_22
"filecoin" -> R.drawable.img_filecoin_22
"cyber", "cyber/test" -> R.drawable.img_cyber_22
"sei", "sei/test" -> R.drawable.img_sei_22
else -> R.drawable.ic_alert_24
}
}
@ -218,6 +220,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"blast", "blast/test" -> R.drawable.img_blast_22
"filecoin" -> R.drawable.img_filecoin_22
"cyber", "cyber/test" -> R.drawable.img_cyber_22
"sei", "sei/test" -> R.drawable.img_sei_22
else -> R.drawable.ic_alert_24
}
}
@ -292,6 +295,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"blast", "blast/test" -> R.drawable.ic_blast_22
"filecoin" -> R.drawable.ic_filecoin_22
"cyber", "cyber/test" -> R.drawable.ic_cyber_22
"sei", "sei/test" -> R.drawable.ic_sei_22
else -> R.drawable.ic_alert_24
}
}
@ -366,6 +370,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
"blast", "blast/test" -> R.drawable.ic_blast_22
"filecoin" -> R.drawable.ic_filecoin_22
"cyber", "cyber/test" -> R.drawable.ic_cyber_22
"sei", "sei/test" -> R.drawable.ic_sei_22
else -> R.drawable.ic_alert_24
}
}

View file

@ -0,0 +1,10 @@
<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="M10.98,19.041C13.356,19.041 15.491,18.007 16.96,16.365C16.277,15.771 15.247,15.735 14.52,16.322L14.381,16.434C13.049,17.509 11.109,17.35 9.969,16.073C9.348,15.377 8.284,15.306 7.575,15.913L5.973,17.287C7.345,18.385 9.086,19.041 10.98,19.041ZM13.58,15.157C14.849,14.134 16.631,14.17 17.851,15.159C18.58,13.951 19,12.535 19,11.02C19,9.338 18.482,7.777 17.597,6.487C17.026,6.365 16.407,6.507 15.938,6.923L15.804,7.042C14.524,8.177 12.578,8.108 11.381,6.885C10.728,6.218 9.662,6.196 8.982,6.836L7.117,8.59L6.092,7.5L7.956,5.746C9.23,4.548 11.227,4.589 12.45,5.838C13.089,6.491 14.128,6.528 14.812,5.922L14.945,5.803C15.36,5.436 15.841,5.188 16.343,5.057C14.922,3.778 13.042,3 10.98,3C6.908,3 3.545,6.034 3.028,9.964C4.265,9.371 5.79,9.599 6.799,10.632C7.435,11.283 8.46,11.352 9.178,10.791L10.22,9.977C11.531,8.954 13.382,9.003 14.636,10.095L16.665,11.863L15.682,12.992L13.653,11.224C12.94,10.603 11.887,10.574 11.142,11.156L10.099,11.971C8.78,13.001 6.897,12.875 5.728,11.677C5.048,10.981 3.935,10.957 3.226,11.623L3,11.834C3.169,13.509 3.853,15.032 4.892,16.242L6.601,14.777C7.928,13.639 9.922,13.772 11.086,15.077C11.694,15.758 12.73,15.843 13.441,15.269L13.58,15.157Z"
android:fillColor="#000000"
android:fillType="evenOdd"/>
</vector>

View file

@ -0,0 +1,20 @@
<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="#9E1F19"/>
<path
android:pathData="M10.98,19.041C13.356,19.041 15.491,18.007 16.96,16.365C16.277,15.771 15.247,15.735 14.52,16.322L14.381,16.434C13.049,17.509 11.109,17.35 9.969,16.073C9.348,15.377 8.284,15.306 7.575,15.913L5.973,17.287C7.345,18.385 9.086,19.041 10.98,19.041ZM13.58,15.157C14.849,14.134 16.631,14.17 17.851,15.159C18.58,13.951 19,12.535 19,11.02C19,9.338 18.482,7.777 17.597,6.487C17.026,6.365 16.407,6.507 15.938,6.923L15.804,7.042C14.524,8.177 12.578,8.108 11.381,6.885C10.728,6.218 9.662,6.196 8.982,6.836L7.117,8.59L6.092,7.5L7.956,5.746C9.23,4.548 11.227,4.589 12.45,5.838C13.089,6.491 14.128,6.528 14.812,5.922L14.945,5.803C15.36,5.436 15.841,5.188 16.343,5.057C14.922,3.778 13.042,3 10.98,3C6.908,3 3.545,6.034 3.028,9.964C4.265,9.371 5.79,9.599 6.799,10.632C7.435,11.283 8.46,11.352 9.178,10.791L10.22,9.977C11.531,8.954 13.382,9.003 14.636,10.095L16.665,11.863L15.682,12.992L13.653,11.224C12.94,10.603 11.887,10.574 11.142,11.156L10.099,11.971C8.78,13.001 6.897,12.875 5.728,11.677C5.048,10.981 3.935,10.957 3.226,11.623L3,11.834C3.169,13.509 3.853,15.032 4.892,16.242L6.601,14.777C7.928,13.639 9.922,13.772 11.086,15.077C11.694,15.758 12.73,15.843 13.441,15.269L13.58,15.157Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
</group>
</vector>

View file

@ -88,7 +88,7 @@ markdown = "0.7.2"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-750"
tangemBlockchainSdk = "develop-755"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-378"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^

View file

@ -123,6 +123,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"blast/test" -> Blockchain.BlastTestnet
"cyber" -> Blockchain.Cyber
"cyber/test" -> Blockchain.CyberTestnet
"sei-network" -> Blockchain.Sei
"sei-network/test" -> Blockchain.SeiTestnet
else -> null
}
}
@ -247,6 +249,8 @@ fun Blockchain.toNetworkId(): String {
Blockchain.BlastTestnet -> "blast/test"
Blockchain.Cyber -> "cyber"
Blockchain.CyberTestnet -> "cyber/test"
Blockchain.Sei -> "sei-network"
Blockchain.SeiTestnet -> "sei-network/test"
}
}
@ -329,6 +333,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.Filecoin -> "filecoin"
Blockchain.Blast, Blockchain.BlastTestnet -> "blast-ethereum"
Blockchain.Cyber, Blockchain.CyberTestnet -> "cyberconnect"
Blockchain.Sei, Blockchain.SeiTestnet -> "sei-network"
}
}