mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-25 08:08:00 +00:00
Initial commit: Pezkuwi Wallet Android
Complete rebrand of Nova Wallet for Pezkuwichain ecosystem. ## Features - Full Pezkuwichain support (HEZ & PEZ tokens) - Polkadot ecosystem compatibility - Staking, Governance, DeFi, NFTs - XCM cross-chain transfers - Hardware wallet support (Ledger, Polkadot Vault) - WalletConnect v2 - Push notifications ## Languages - English, Turkish, Kurmanci (Kurdish), Spanish, French, German, Russian, Japanese, Chinese, Korean, Portuguese, Vietnamese Based on Nova Wallet by Novasama Technologies GmbH © Dijital Kurdistan Tech Institute 2026
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</manifest>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package io.novafoundation.nova.feature_wallet_connect_api.di
|
||||
|
||||
import io.novafoundation.nova.feature_wallet_connect_api.di.deeplinks.WalletConnectDeepLinks
|
||||
import io.novafoundation.nova.feature_wallet_connect_api.domain.sessions.WalletConnectSessionsUseCase
|
||||
import io.novafoundation.nova.feature_wallet_connect_api.presentation.WalletConnectService
|
||||
|
||||
interface WalletConnectFeatureApi {
|
||||
|
||||
val walletConnectService: WalletConnectService
|
||||
|
||||
val sessionsUseCase: WalletConnectSessionsUseCase
|
||||
|
||||
val walletConnectDeepLinks: WalletConnectDeepLinks
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package io.novafoundation.nova.feature_wallet_connect_api.di.deeplinks
|
||||
|
||||
import io.novafoundation.nova.feature_deep_linking.presentation.handling.DeepLinkHandler
|
||||
|
||||
class WalletConnectDeepLinks(val deepLinkHandlers: List<DeepLinkHandler>)
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package io.novafoundation.nova.feature_wallet_connect_api.domain.sessions
|
||||
|
||||
import io.novafoundation.nova.feature_account_api.domain.model.MetaAccount
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface WalletConnectSessionsUseCase {
|
||||
|
||||
fun activeSessionsNumberFlow(): Flow<Int>
|
||||
|
||||
fun activeSessionsNumberFlow(metaAccount: MetaAccount): Flow<Int>
|
||||
|
||||
suspend fun activeSessionsNumber(): Int
|
||||
|
||||
suspend fun syncActiveSessions()
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package io.novafoundation.nova.feature_wallet_connect_api.presentation
|
||||
|
||||
import androidx.lifecycle.LiveData
|
||||
import io.novafoundation.nova.common.utils.Event
|
||||
|
||||
interface WalletConnectService {
|
||||
|
||||
val onPairErrorLiveData: LiveData<Event<Throwable>>
|
||||
|
||||
fun connect()
|
||||
|
||||
fun disconnect()
|
||||
|
||||
fun pair(uri: String)
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package io.novafoundation.nova.feature_wallet_connect_api.presentation
|
||||
|
||||
import io.novafoundation.nova.common.utils.formatting.format
|
||||
|
||||
class WalletConnectSessionsModel(val connections: String?)
|
||||
|
||||
fun mapNumberOfActiveSessionsToUi(activeSessions: Int): WalletConnectSessionsModel {
|
||||
return if (activeSessions > 0) {
|
||||
WalletConnectSessionsModel(activeSessions.format())
|
||||
} else {
|
||||
WalletConnectSessionsModel(null)
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package io.novafoundation.nova.feature_wallet_connect_api.presentation.utils
|
||||
|
||||
import android.net.Uri
|
||||
|
||||
object WalletConnectUtils {
|
||||
fun isWalletConnectPairingLink(data: Uri): Boolean {
|
||||
val isNovaLink = data.scheme == "novawallet" && data.host == "wc"
|
||||
val isLinkFromOtherSource = data.scheme == "wc"
|
||||
val isWalletConnectLink = isNovaLink || isLinkFromOtherSource
|
||||
|
||||
val isPairing = "symKey" in data.toString()
|
||||
return isWalletConnectLink && isPairing
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user