diff --git a/app/src/main/assets/chains/icons/hyperliquid.svg b/app/src/main/assets/chains/icons/hyperliquid.svg new file mode 100644 index 00000000..fd0da0f3 --- /dev/null +++ b/app/src/main/assets/chains/icons/hyperliquid.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/blockchain/src/main/java/com/gemwallet/android/blockchain/operators/walletcore/WCChainTypeProxy.kt b/blockchain/src/main/java/com/gemwallet/android/blockchain/operators/walletcore/WCChainTypeProxy.kt index 0239ba65..3326ab0f 100644 --- a/blockchain/src/main/java/com/gemwallet/android/blockchain/operators/walletcore/WCChainTypeProxy.kt +++ b/blockchain/src/main/java/com/gemwallet/android/blockchain/operators/walletcore/WCChainTypeProxy.kt @@ -17,6 +17,7 @@ class WCChainTypeProxy : ChainTypeProxy { Chain.Berachain, Chain.Ink, Chain.Unichain, + Chain.Hyperliquid, Chain.Blast -> CoinType.ETHEREUM Chain.SmartChain -> CoinType.SMARTCHAIN Chain.Solana -> CoinType.SOLANA diff --git a/core b/core index e1f3df57..87517531 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e1f3df57a411d44f13c4edd06678fcb56ca1bb8e +Subproject commit 87517531166b03d47a5ffdc44cb5c6db015a8eb8 diff --git a/gemcore/src/main/java/com/gemwallet/android/ext/Chain.kt b/gemcore/src/main/java/com/gemwallet/android/ext/Chain.kt index e78fd30a..d11ad845 100644 --- a/gemcore/src/main/java/com/gemwallet/android/ext/Chain.kt +++ b/gemcore/src/main/java/com/gemwallet/android/ext/Chain.kt @@ -40,6 +40,7 @@ fun Chain.assetType(): AssetType? { Chain.Ink, Chain.Berachain, Chain.Unichain, + Chain.Hyperliquid, Chain.World -> AssetType.ERC20 Chain.Cosmos, @@ -90,6 +91,7 @@ fun Chain.eip1559Support() = when (this) { Chain.Ink, Chain.Berachain, Chain.Unichain, + Chain.Hyperliquid, Chain.Ethereum -> true Chain.Bitcoin, Chain.Litecoin, @@ -189,6 +191,7 @@ fun Chain.toChainType(): ChainType { Chain.Berachain, Chain.Unichain, Chain.Ink, + Chain.Hyperliquid, Chain.Ethereum -> ChainType.Ethereum } } diff --git a/gemcore/src/main/java/com/wallet/core/primitives/Chain.kt b/gemcore/src/main/java/com/wallet/core/primitives/Chain.kt index 033877bf..66f580d0 100644 --- a/gemcore/src/main/java/com/wallet/core/primitives/Chain.kt +++ b/gemcore/src/main/java/com/wallet/core/primitives/Chain.kt @@ -97,5 +97,7 @@ enum class Chain(val string: String) { Ink("ink"), @SerialName("unichain") Unichain("unichain"), + @SerialName("hyperliquid") + Hyperliquid("hyperliquid"), } diff --git a/gemcore/src/main/java/com/wallet/core/primitives/ChainEvm.kt b/gemcore/src/main/java/com/wallet/core/primitives/ChainEvm.kt index 49b8e328..1bb9c9c6 100644 --- a/gemcore/src/main/java/com/wallet/core/primitives/ChainEvm.kt +++ b/gemcore/src/main/java/com/wallet/core/primitives/ChainEvm.kt @@ -53,5 +53,7 @@ enum class EVMChain(val string: String) { Ink("ink"), @SerialName("unichain") Unichain("unichain"), + @SerialName("hyperliquid") + Hyperliquid("hyperliquid"), } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 152b839e..c6fb2e81 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -49,7 +49,7 @@ datastore = "1.1.2" appcompat = "1.7.0" material = "1.12.0" wallet-core = "4.2.6" -gemstone = "0.30.2" +gemstone = "0.30.5" [libraries] gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }