mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 21:47:56 +00:00
d8a0707595
This commit implements the complete blockchain integration for the mobile app's wallet functionality: **Polkadot.js Integration:** - Created PolkadotContext for mobile with full blockchain connectivity - Implemented wallet creation with mnemonic seed phrases - Added secure key management with AsyncStorage - Connected to Pezkuwi testnet (wss://beta-rpc.pezkuwi.art) **WalletScreen Enhancements:** - Live blockchain balance fetching for HEZ (native token) - Live balance fetching for PEZ and wUSDT (assets) - Real-time balance updates every 30 seconds - Actual send transactions using api.tx.balances.transfer (HEZ) - Actual send transactions using api.tx.assets.transfer (PEZ, wUSDT) - Transaction signing with user's keypair - Loading states and error handling - Wallet creation flow for new users - Connect/disconnect wallet functionality **Bottom Navigation:** - Created BottomTabNavigator with 5 tabs - Added WalletScreen with live blockchain integration - Added BeCitizenScreen (citizenship application) - Added ReferralScreen (referral program) - Renamed SettingsScreen to ProfileScreen - Custom center button for "Be Citizen" feature **App Structure:** - Wrapped app with PolkadotProvider in App.tsx - Updated AppNavigator to use BottomTabNavigator - Integrated language selection flow with blockchain features All wallet features now use live blockchain data instead of mock data.
37 lines
1012 B
JSON
37 lines
1012 B
JSON
{
|
|
"name": "mobile",
|
|
"version": "1.0.0",
|
|
"main": "index.ts",
|
|
"scripts": {
|
|
"start": "expo start",
|
|
"android": "expo start --android",
|
|
"ios": "expo start --ios",
|
|
"web": "expo start --web"
|
|
},
|
|
"dependencies": {
|
|
"@polkadot/api": "^16.5.2",
|
|
"@polkadot/keyring": "^13.5.8",
|
|
"@polkadot/util": "^13.5.8",
|
|
"@polkadot/util-crypto": "^13.5.8",
|
|
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
"@react-navigation/bottom-tabs": "^7.8.5",
|
|
"@react-navigation/native": "^7.1.20",
|
|
"@react-navigation/stack": "^7.6.4",
|
|
"expo": "~54.0.23",
|
|
"expo-linear-gradient": "^15.0.7",
|
|
"expo-status-bar": "~3.0.8",
|
|
"i18next": "^25.6.2",
|
|
"react": "19.1.0",
|
|
"react-i18next": "^16.3.3",
|
|
"react-native": "0.81.5",
|
|
"react-native-safe-area-context": "^5.6.2",
|
|
"react-native-screens": "^4.18.0",
|
|
"react-native-vector-icons": "^10.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "~19.1.0",
|
|
"typescript": "~5.9.2"
|
|
},
|
|
"private": true
|
|
}
|