mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-10-24 20:45:08 +00:00
71e20f843d51be613d159182c40acdbd9d00251b
- extension-dapp and extension-inject had the manifest the build writes into build/ committed as their source manifest (main ./build/cjs/index.js, an exports map into ./build/). They are back in the source form of the upstream manifests; the build generates those fields itself. - Dependencies between the packages were workspace:*, and the build copies them into the published manifest as they are: @pezkuwi/extension-base 0.62.19 on npm depends on "@pezkuwi/extension-chains": "workspace:*" and cannot be installed. They are exact versions, as upstream has them; yarn still links the workspaces. - @pezkuwi/* common dependencies ^14.0.26 and api dependencies ^16.5.37. These carry wasm-crypto 7.5.20, where ed25519, secp256k1, derivation and bip39 are implemented; 7.5.18 shipped them as "not yet implemented" stubs. The root resolutions that forced 14.0.25, 16.5.36 and wasm-crypto 7.5.18 onto the tree are removed; every @pezkuwi package resolves to a single version without them. - @pezkuwi/dev ^0.85.12. - One version for everything: the packages were at 0.62.20, the extension package at 0.62.23, the root at 0.62.24 and the browser manifests at 0.62.26. All are 0.62.27, above every version on npm and in the stores.
Pezkuwi Extension
A browser extension for PezkuwiChain that injects a @pezkuwi/api Signer into a page, along with any associated accounts, allowing for use by any dapp. This is an implementation of a PezkuwiChain browser signer.
Developed by Dijital Kurdistan Tech Institute
Overview
This extension manages accounts and allows the signing of transactions with those accounts for the PezkuwiChain network.
Installation
- Chrome / Chromium / Brave / Edge: Install from the Chrome Web Store
- Firefox: build from source (see Development); a Firefox Add-ons listing is coming soon
Documentation
Find out more about how to use the extension as a Dapp developer in the Pezkuwi Extension Documentation
Development
Prerequisites
- Node.js >= 18.14
- Yarn 4.x (via corepack)
Building from Source
- Enable corepack:
corepack enable - Install dependencies:
yarn install - Build for Chrome:
yarn build:chrome - Build for Firefox:
yarn build:ff
Loading the Extension
Chrome:
- Go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select
packages/extension/build
Firefox:
- Go to
about:debugging#addons - Check "Enable add-on debugging"
- Click "Load Temporary Add-on" and select
packages/extension/build/manifest.json
Packages
- extension - Main entry point with injection and background logic
- extension-ui - UI components for the popup
- extension-dapp - Wrapper for dapps to work with injected objects
- extension-inject - Wrapper for extension developers to inject their extension
For Dapp Developers
Use the @pezkuwi/extension-dapp package to integrate with this extension or any compatible extension.
import { web3Enable, web3Accounts } from '@pezkuwi/extension-dapp';
// Enable the extension
const extensions = await web3Enable('My Dapp');
// Get all accounts
const accounts = await web3Accounts();
Links
- Website: https://pezkuwichain.io
- Documentation: https://docs.pezkuwichain.io
- GitHub: https://github.com/pezkuwichain
- API Docs: https://js.pezkuwichain.app
License
Apache-2.0
Author
Dijital Kurdistan Tech Institute
Languages
TypeScript
96.3%
JavaScript
1.7%
Python
0.6%
CSS
0.6%
Shell
0.4%
Other
0.4%