Commit Graph
20 Commits
Author SHA1 Message Date
Satoshi Qazi Muhammed df9c96b238 rewards: claim what the chain pays, without recording a score first
The People chain has no pezRewards.recordTrustScore and no userEpochScores since the payroll
started holding the roll still through each claim window: a claim pays the trust score at
claim time times the epoch's rate, plus the seat share for a Parlementer seat taken by the
time of the roll. The app still asked for the recorded score, so the claimable list was
always empty, and its Record Trust Score button signed a call that does not exist.

The button, its handler and its texts are removed, and the claimable amount is worked out
as the chain's entitlement does.
2026-10-25 19:32:06 +04:00
Kurdistan Tech Ministry abd4dc7189 feat: in-app citizenship modal + referral approvals + bot DKS link
- Add CitizenshipModal component for in-app citizenship application
  (uses connected wallet keypair, no seed phrase needed)
- Replace /citizens redirect with in-app modal in Rewards section
- Add pending approvals to ReferralContext
- Add approveReferral and getPendingApprovals to citizenship lib
- Add applyingCitizenship/applicationSuccess translations (6 langs)
- Add DKS Kurdistan bot link to telegram-bot welcome message
2026-03-02 00:50:20 +03:00
Kurdistan Tech Ministry faf0faed69 fix: use wallet address in citizenship referral link
Replace ref_telegramId with SS58 wallet address in referral link.
Share message now includes invitation text, auto-fill link, and
wallet address for manual paste in the referrer field.
2026-02-28 02:33:39 +03:00
Kurdistan Tech Ministry b800b36b9f fix: use ClaimedRewards double-map for accurate unclaimed reward detection
- Replace legacy ledger.claimedRewards (empty in paged-rewards Substrate)
  with ClaimedRewards(era, validator) storage double-map
- Track user's page in erasStakersPaged and check against claimed pages
- Use historyDepth instead of hardcoded 10 eras
- Split batch payouts into groups of 5 to avoid block weight overflow
- Use utility.batch instead of batchAll for resilience
- Pass page to payoutStakersByPage when available
2026-02-27 03:07:14 +03:00
Kurdistan Tech Ministry 1be1c252e0 fix: correct referral link bot username to pezkuwichainBot 2026-02-24 00:09:04 +03:00
Kurdistan Tech Ministry f2b809cb7c feat: add HEZ staking reward claim functionality
- Add staking-rewards.ts with unclaimed era detection and payoutStakers
- Show unclaimed rewards with per-era claim buttons in Scores tab
- Support batch claim via utility.batchAll
- Add translations for 6 languages
2026-02-21 18:35:05 +03:00
Kurdistan Tech Ministry a14bd57bbe feat: add PEZ epoch rewards display and claim functionality 2026-02-21 17:53:30 +03:00
Kurdistan Tech Ministry de6f41263c feat: migrate staking to Asset Hub and add citizen count card
- HEZStakingModal: switch all staking queries/tx from RC api to assetHubApi
- Add citizen count card to Rewards overview (Hejmara Kurd Le Cihane)
- Add getCitizenCount() to fetch total citizens from People Chain
- Add translations for citizen count card (6 languages)
2026-02-21 02:55:07 +03:00
Kurdistan Tech Ministry ef8132c82a feat: add Start Tracking and Record Trust Score buttons to Scores tab 2026-02-20 02:27:53 +03:00
Kurdistan Tech Ministry d2969c1062 feat: add confirmCitizenship step to Rewards section 2026-02-20 01:21:26 +03:00
Kurdistan Tech Ministry db3ed21970 fix: show real staking score from CachedStakingDetails instead of hardcoded 0 2026-02-17 02:13:53 +03:00
Kurdistan Tech Ministry 9b97c63a26 feat: 3-state staking score UI with cached data support 2026-02-17 01:56:49 +03:00
Kurdistan Tech Ministry 9da348bdf3 feat: add i18n support with 6 languages (en, tr, krd, ar, fa, ckb)
- Add translation system with useTranslation hook and LanguageProvider
- Auto-detect language from Telegram user settings
- Update all components and sections to use translation keys
- Support English, Turkish, Kurdish, Arabic, Persian, Sorani
2026-02-14 11:06:14 +03:00
Kurdistan Tech Ministry d48fb39c4e refactor(scores): remove frontend fallback, read all scores from blockchain
- Remove localStorage staking tracking and manual score calculation
- Read trust, referral, tiki, perwerde scores directly from People Chain
- Add SubQuery integration for staking reward history display
- Align score system with pwap/shared implementation
2026-02-13 06:26:27 +03:00
Kurdistan Tech Ministry b641c742cc fix: change debug console.log to console.warn for lint 2026-02-07 02:26:35 +03:00
Kurdistan Tech Ministry 67b30daca8 fix: tiki score, staking lookup, LP balance, teleport, DOT swap
- Fix tiki: use userTikis storage instead of userRoles
- Add tiki name to score mapping (welati=10, serok=50, etc)
- Improve staking ledger lookup with debug logging
- Fix LP balance fetching using poolId directly
- Change teleport placeholder from 0.5 to empty
- Add DOT token to swap list with 10 decimals
2026-02-07 02:20:04 +03:00
Kurdistan Tech Ministry c35c538678 fix: LP staking logout issue and Kurdish text correction
- Replace window.location.reload() with onClose() in LPStakingModal
- Fix Turkish word "ise" to Kurdish "be" in Rewards score formula
2026-02-07 02:07:37 +03:00
Kurdistan Tech Ministry 2cf40459d3 fix: use Kurdish terminology (Xal instead of Puanlar) 2026-02-07 01:33:15 +03:00
Kurdistan Tech Ministry 1a7609c14c feat: add scores tab and DOT token to send list
- Add Puanlar (Scores) tab to Xelat section showing trust, staking, referral, tiki scores
- Add scores.ts lib with frontend fallback for staking and trust score calculation
- Add DOT token (asset ID 1001) to sendable tokens list
2026-02-07 01:10:09 +03:00
Kurdistan Tech Ministry ddd28705c1 Initial commit - PezkuwiChain Telegram MiniApp 2026-02-05 10:53:13 +03:00