Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions app/src/main/assets/chains/icons/xdc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class WCChainTypeProxy : ChainTypeProxy<CoinType> {
Chain.Unichain,
Chain.Hyperliquid,
Chain.Monad,
Chain.XDC,
Chain.Blast -> CoinType.ETHEREUM
Chain.SmartChain -> CoinType.SMARTCHAIN
Chain.Solana -> CoinType.SOLANA
Expand Down
3 changes: 3 additions & 0 deletions gemcore/src/main/java/com/gemwallet/android/ext/Chain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fun Chain.assetType(): AssetType? {
Chain.Unichain,
Chain.Hyperliquid,
Chain.Monad,
Chain.XDC,
Chain.World -> AssetType.ERC20

Chain.Cosmos,
Expand Down Expand Up @@ -95,6 +96,7 @@ fun Chain.eip1559Support() = when (this) {
Chain.Unichain,
Chain.Hyperliquid,
Chain.Monad,
Chain.XDC,
Chain.Ethereum -> true
Chain.Bitcoin,
Chain.Litecoin,
Expand Down Expand Up @@ -196,6 +198,7 @@ fun Chain.toChainType(): ChainType {
Chain.Ink,
Chain.Hyperliquid,
Chain.Monad,
Chain.XDC,
Chain.Ethereum -> ChainType.Ethereum
}
}
Expand Down
2 changes: 2 additions & 0 deletions gemcore/src/main/java/com/wallet/core/primitives/Chain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ enum class Chain(val string: String) {
Hyperliquid("hyperliquid"),
@SerialName("monad")
Monad("monad"),
@SerialName("xdc")
XDC("xdc"),
}

2 changes: 2 additions & 0 deletions gemcore/src/main/java/com/wallet/core/primitives/ChainEvm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ enum class EVMChain(val string: String) {
Hyperliquid("hyperliquid"),
@SerialName("monad")
Monad("monad"),
@SerialName("xdc")
XDC("xdc"),
}