feat: update extension to v0.62.21 with AuthorizeCall support

- Add AuthorizeCall signed extension support for PezkuwiChain
- Update extension name to "pezkuwi{.js} extension"
- Update version to 0.62.21
- Fix signing for transactions that require custom signed extensions
This commit is contained in:
2026-02-02 01:10:36 +03:00
parent 672ec36f09
commit 3176649a20
6 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.62.20",
"version": "0.62.21",
"versions": {
"git": "0.62.6",
"npm": "0.62.6"
@@ -29,6 +29,15 @@ const SEED_DEFAULT_LENGTH = 12;
const SEED_LENGTHS = [12, 15, 18, 21, 24];
const ETH_DERIVE_DEFAULT = "/m/44'/60'/0'/0/0";
// PezkuwiChain custom signed extensions
// AuthorizeCall is a no-op extension that must be present for signing to work
const PEZKUWI_USER_EXTENSIONS: Record<string, { extrinsic: Record<string, string>; payload: Record<string, string> }> = {
AuthorizeCall: {
extrinsic: {},
payload: {}
}
};
function getSuri (seed: string, type?: KeypairType): string {
return type === 'ethereum'
? `${seed}${ETH_DERIVE_DEFAULT}`
@@ -379,11 +388,15 @@ export default class Extension {
const expanded = metadataExpand(metadata, false);
registry = expanded.registry;
registry.setSignedExtensions(payload.signedExtensions, expanded.definition.userExtensions);
// Merge PezkuwiChain user extensions with any from metadata
const mergedUserExtensions = { ...PEZKUWI_USER_EXTENSIONS, ...expanded.definition.userExtensions };
registry.setSignedExtensions(payload.signedExtensions, mergedUserExtensions);
} else {
// we have no metadata, create a new registry
registry = new TypeRegistry();
registry.setSignedExtensions(payload.signedExtensions);
// Always include PezkuwiChain user extensions for signing to work
registry.setSignedExtensions(payload.signedExtensions, PEZKUWI_USER_EXTENSIONS);
}
} else {
// for non-payload, just create a registry to use
+4 -4
View File
@@ -2,8 +2,8 @@
"author": "PezkuwiChain",
"description": "Manage your Pezkuwi blockchain accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.",
"homepage_url": "https://github.com/pezkuwichain/pezkuwi-extension",
"name": "pezkuwi.js",
"short_name": "pezkuwi.js",
"name": "pezkuwi{.js} extension",
"short_name": "pezkuwi{.js}",
"manifest_version": 3,
"permissions": ["storage", "tabs"],
"background": {
@@ -11,7 +11,7 @@
"type": "module"
},
"action": {
"default_title": "Pezkuwi Extension",
"default_title": "pezkuwi{.js} extension",
"default_popup": "index.html"
},
"content_scripts": [{
@@ -39,5 +39,5 @@
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
},
"version": "0.62.20"
"version": "0.62.21"
}
+4 -4
View File
@@ -2,8 +2,8 @@
"author": "PezkuwiChain",
"description": "Manage your Pezkuwi blockchain accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.",
"homepage_url": "https://github.com/pezkuwichain/pezkuwi-extension",
"name": "pezkuwi.js",
"short_name": "pezkuwi.js",
"name": "pezkuwi{.js} extension",
"short_name": "pezkuwi{.js}",
"manifest_version": 3,
"permissions": ["storage", "tabs"],
"background": {
@@ -11,7 +11,7 @@
"type": "module"
},
"action": {
"default_title": "Pezkuwi Extension",
"default_title": "pezkuwi{.js} extension",
"default_popup": "index.html"
},
"browser_specific_settings": {
@@ -48,5 +48,5 @@
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
},
"version": "0.62.20"
"version": "0.62.21"
}
+1 -1
View File
@@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.62.20",
"version": "0.62.21",
"scripts": {
"pezkuwi-exec-webpack": "pezkuwi-exec-webpack"
},
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @pezkuwi/dev
export const packageInfo = { name: '@pezkuwi/extension', path: 'auto', type: 'auto', version: '0.62.20' };
export const packageInfo = { name: '@pezkuwi/extension', path: 'auto', type: 'auto', version: '0.62.21' };