Commit Graph
20 Commits
Author SHA1 Message Date
Satoshi Qazi Muhammed 9d769676e4 Move to @pezkuwi/dev 0.86 (eslint 10 toolchain)
- @pezkuwi/dev, dev-test, dev-ts ^0.86.3 in the root and in every
  workspace package (they still asked for 0.84.3)
- tsconfig.base target ES2022, the @pezkuwi/dev default; it carries
  the ErrorOptions type for `cause`
- rethrown errors carry the original as `cause`; rejections are
  normalised to Error
- page/messaging: the typed subscriber is called directly, not as
  `Function`
- chrome mock: constant results through Promise.resolve
- useLedger: drop a construction every branch below repeated
- InputWithLabel: onKeyDown instead of the deprecated onKeyPress
- Account: toggleActions + 1 instead of a pre-increment of a parameter
- optional chains where a guard tested the same value
- specs: mount<React.Component> so the wrappers are not `any`-typed
- AccountsStore.set keeps its async override of KeyringStore.set:
  BaseStore.set handles its own failure, so it never rejects
- extension-chains keeps its ChainProperties assertion: the package's
  own build does not load the type augmentation
- the existing React Compiler findings (37, react-hooks rules only)
  are recorded in eslint-suppressions.json; a new one fails lint
2026-10-09 16:32:46 +04:00
Kurdistan Tech Ministry 865bce54ae Make the PR checks able to fail, and fix what they had been hiding
pr-any.yml ran lint, test and build with continue-on-error: true, so every
PR showed success while main had 41 lint errors and 19 of 61 tests failing.
The flag is removed and the failures are fixed:

- TypeScript 5.5.4 -> 5.9. @pezkuwi/util and friends ship declarations
  with Uint8Array<ArrayBufferLike>, which 5.5 cannot read, so every such
  value was typed `any` here (the 16 wrapBytes errors). The pin dates from
  a styled-components declaration problem that went away with the move
  back to styled-components 5; build and lint pass on 5.9.
- State.ts: the stored security log is parsed through a function that
  returns an empty log for anything that is not a JSON array, instead of
  letting `any` flow on; fire-and-forget logging uses .catch(console.error)
  like the rest of the codebase; object keys sorted.
- buildHierarchy.spec.ts: a rename had replaced the genesis hashes with
  0x..01 / 0x..02, which resolve to no network name, so sorting by network
  had nothing to sort on. The test now takes two real entries from
  chains.ts by name.
- scripts/*.cjs is in the lint project (it failed to parse); header and
  key order fixed in postbuild-cleanup.cjs.
- temp_ff_validate/ (43 build files) and pezkuwi-chrome-0.62.22.zip were
  committed by accident in f5495f7; removed and ignored.

16 of the 19 failing tests are not fixed here: they fail because
@pezkuwi/wasm-crypto 7.5.18 stubs ed25519, secp256k1 and sr25519
derivation. With the 7.5.19 build from pezkuwi-wasm#2 installed locally,
lint is clean and all 61 tests pass. Until 7.5.19 is published and
picked up here, those 16 stay red on this PR, which is the point.
2026-10-08 09:07:34 +04:00
Kurdistan Tech Ministry 084187e67b fix(i18n): handle 'default' language by mapping to 'en'
The ui-settings LANGUAGE_DEFAULT is 'default' but no locale folder exists for it.
This caused i18n to fail loading translations, breaking the entire UI including
wallet creation screen (showed <unknown> instead of text).

Fix normalizes 'default' language to 'en' in the i18n Backend.
2026-02-02 19:11:43 +03:00
Kurdistan Tech Ministry 6e5ff295d9 fix: add AuthorizeCall user extension to signing registry
Added PEZKUWI_USER_EXTENSIONS with AuthorizeCall to the signing request
registry. This ensures proper transaction signing for PezkuwiChain
networks even when chain metadata is not available.

Without this fix, transactions fail with "bad signature" errors
because the AuthorizeCall extension is not properly included in
the signed payload.
2026-02-02 17:43:29 +03:00
Kurdistan Tech Ministry a0bd0e2b3f fix: correct Asset Hub, People Chain, Zagros genesis hashes
All genesis hashes now from live chains:
- PezkuwiChain: 0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75
- Asset Hub: 0x00d0e1d0581c3cd5c5768652d52f4520184018b44f56a2ae1e0dc9d65c00c948
- People Chain: 0x58269e9c184f721e0309332d90cafc410df1519a5dc27a5fd9b3bf5fd2d129f8
- Zagros Testnet: 0x96eb58af1bb7288115b5e4ff1590422533e749293f231974536dc6672417d06f
2026-02-02 03:00:47 +03:00
Kurdistan Tech Ministry 552d2bf3cf fix: update genesis hashes with correct mainnet values
- PezkuwiChain Mainnet: 0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75
- Updated chain names to match actual network names
2026-02-02 02:57:01 +03:00
Kurdistan Tech Ministry f123bbfacc Downgrade styled-components to v5 for TypeScript compatibility
- Downgrade styled-components from v6.1.1 to v5.3.11
- Add @types/styled-components for v5 type definitions
- Simplify styled.ts export (v5 uses default export)
- Remove tsconfig skipLibCheck workaround (not needed with v5)
- Add string-replace-loader dependency for webpack
- Update @pezkuwi/dev to 0.85.4 (includes rollup config export fix)

This fixes TS2742 declaration emit errors that prevented npm
package builds while allowing Chrome/Firefox extension bundles.
2026-01-17 21:08:55 +03:00
Kurdistan Tech Ministry ebe8d5c499 fix: add type exports to styled.ts for TypeScript declaration compatibility 2026-01-17 19:51:56 +03:00
Kurdistan Tech Ministry dbb18e8621 Disable declaration emission for extension-ui (not npm-published package) 2026-01-17 18:55:13 +03:00
Kurdistan Tech Ministry 7b44c5fa22 chore: Update package author to Kurdistan Tech Institute & PezkuwiChain Team
Updated author field in all package.json files from original Polkadot
author to the Pezkuwi project maintainers.
2026-01-15 10:08:46 +03:00
Kurdistan Tech Ministry 5059957bc4 fix: update test genesis hash for Dicle to match chains.ts 2026-01-09 03:31:07 +03:00
Kurdistan Tech Ministry 646b6d7bb5 feat: add all 4 Pezkuwi ecosystem chains
- Pezkuwi (mainnet relay chain)
- Dicle (canary relay chain)
- Zagros (testnet)
- TeyrChain (testnet)

All chains use placeholder genesis hashes for now.
2026-01-09 03:26:25 +03:00
Kurdistan Tech MinistryandClaude Opus 4.5 5d54192e6d chore: update copyright years to 2026 and fix lint issues
- Update all copyright headers from 2025 to 2026
- Fix @polkadot references to @pezkuwi in config files
- Fix eslint.config.js import path

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 01:22:46 +03:00
Kurdistan Tech MinistryandClaude Opus 4.5 55d0b57348 fix: update pezkuwi-ui dependencies to 3.17.1 and fix type issues
- Update @pezkuwi/react-identicon, ui-shared, ui-settings, ui-keyring, react-qr to ^3.17.1
- Fix westendMetadata → zagrosMetadata imports in test files
- Remove backward compatibility for polkadot/substrate themes in Identicon.tsx
- Add proper Network[] type annotation to legerChains.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 00:53:48 +03:00
Kurdistan Tech Ministry fc9e7235ae test: update test files with Pezkuwi terminology
- Replace Polkadot/Kusama/Westend with Pezkuwi/Dicle/Zagros
- Update genesis hashes to Pezkuwi network hashes
- Update icon themes from polkadot/substrate to pezkuwi/bizinikiwi
- Update URLs from polkadot.org to pezkuwichain.io
- Update account names from "My Polkadot Account" to "My Pezkuwi Account"
2026-01-09 00:31:25 +03:00
Kurdistan Tech Ministry a8dd23fbd1 refactor: update Asset Hub and Parachain terminology to Pezkuwi
- Asset Hub → Pezkuwi Asset Hub
- Relay Chain → Pezkuwi Relay Chain
- Parachain → TeyrChain
- Update AssetHubMigration.tsx component
- Update translation strings
2026-01-09 00:24:08 +03:00
Kurdistan Tech Ministry 5a5723c686 refactor: update identicon theme mapping and Ledger text to Pezkuwi
- Update Identicon.tsx to use pezkuwi theme instead of jdenticon fallback
- Update Ledger app references from Polkadot to Pezkuwi
- Update translation file for Ledger text
2026-01-09 00:18:24 +03:00
Kurdistan Tech Ministry ea2db6558f feat: complete Pezkuwi rebrand - remove other networks
- Remove all Polkadot ecosystem networks from chain selector
- Keep only: Pezkuwi Relay Chain, Zagros Relay Chain, Pezkuwi Beta Testnet
- Update extension ID from polkadot-js to pezkuwi
- Update PhishingDetected to use Pezkuwi branding
- Update metadataMock: Westend → Zagros, WND → ZGR
- Disable Ledger chains (no Pezkuwi Ledger app yet)
- Update Identicon to handle pezkuwi icon theme
- Clean up translation files

Breaking: Extension now only supports Pezkuwi networks
2026-01-08 23:46:33 +03:00
Kurdistan Tech Ministry 4a9181d69b Rebrand: polkadot → pezkuwi build fixes
- Fixed webpack.shared.cjs and webpack.config.cjs imports
- Fixed rollup.config.js imports
- Added x-* package resolutions
- Renamed hooks/index.js to hooks/index.ts
- Added pezkuwi-exec-webpack script alias
- Updated tsconfig.base.json with pezkuwi paths
2026-01-07 02:31:08 +03:00
Kurdistan Tech Ministry c2913a65d9 Update domain references to pezkuwichain.app and rebrand from polkadot 2026-01-06 12:21:11 +03:00