The account list shows each wallet as one card. Tabs switch between the ML-DSA-65, ML-DSA-87 and wormhole accounts its secret unlocks, and a selector switches between account indices when there is more than one. Pairs a wallet owns aren't listed again on their own; accounts from JSON or quantus-cli imports, and those made before wallets, still are. The last tab and index shown are remembered per wallet in browser storage. Import and create no longer ask for a key type, and import no longer takes a derivation path. A recovery phrase or 0x seed previews all three account-0 addresses before anything is saved, so a user can recognise their wallet by whichever address they know it by. This was the gap behind a wormhole account "importing" as the wrong address. More accounts come from the wallet's menu (Add account, password required), which replaces derive-from-parent. - The wallet menu offers rename, add account, export of the selected signing account, and forget wallet, which removes the stored secret and every pair. - The wormhole tab shows the receive address and says plainly that balance and sending aren't in the extension yet (#13, stage B of #14). - Address no longer shows its hide-from-dapps toggle for an address with no keyring account behind it, where it could only fail. - The name/password step can now show why creating failed, such as a secret that is already a wallet. Verified in Firefox against the built extension: - The chain node's TEST_MNEMONIC previews its TEST_WORMHOLE_ADDRESS (qzpWh4…) and TEST_ADDRESS_HD_0 (qzm5QC…, ML-DSA-87). The latter matches a vector these tests never used. - The zero seed previews crystal_alice with no wormhole tab, and importing it twice is refused. - Storage holds the secret only encrypted. - Add account refuses a wrong password, then adds account 1, and the selector switches to it. - Forget removes the wallet record and both of its keyring pairs, and leaves the other wallet alone. Part of quantus/extension#14. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012uDUodEcRbBwNRi3UCmw8f
69 lines
4.1 KiB
JSON
69 lines
4.1 KiB
JSON
{
|
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
"bugs": "https://github.com/polkadot-js/extension/issues",
|
|
"engines": {
|
|
"node": ">=18.14"
|
|
},
|
|
"homepage": "https://github.com/polkadot-js/extension#readme",
|
|
"license": "Apache-2.0",
|
|
"packageManager": "yarn@4.9.2",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/polkadot-js/extension.git"
|
|
},
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"version": "0.64.0",
|
|
"versions": {
|
|
"git": "0.63.2-1-x",
|
|
"npm": "0.63.1"
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn build:chrome && yarn build:ff",
|
|
"build:before": "yarn build:i18n",
|
|
"build:chrome": "cp ./packages/extension/manifest_chrome.json ./packages/extension/manifest.json && polkadot-dev-build-ts && yarn build:zip:chrome && yarn build:rollup",
|
|
"build:ff": "cp ./packages/extension/manifest_firefox.json ./packages/extension/manifest.json && polkadot-dev-build-ts && yarn build:zip:ff && yarn build:rollup",
|
|
"build:i18n": "i18next-scanner --config i18next-scanner.config.cjs",
|
|
"build:release": "polkadot-ci-ghact-build",
|
|
"build:rollup": "polkadot-exec-rollup --config",
|
|
"build:zip": "yarn build:zip:chrome && yarn build:zip:ff",
|
|
"build:zip:chrome": "cp ./packages/extension/manifest_chrome.json ./packages/extension/manifest.json && yarn build:zip:dst:chrome && yarn build:zip:src:chrome",
|
|
"build:zip:dst:chrome": "rm -rf ./master-chrome-build.zip && cd packages/extension/build && zip -r -FS ../../../master-chrome-build.zip .",
|
|
"build:zip:dst:ff": "rm -rf ./master-ff-build.zip && cd packages/extension/build && zip -r -FS ../../../master-ff-build.zip .",
|
|
"build:zip:ff": "cp ./packages/extension/manifest_firefox.json ./packages/extension/manifest.json && yarn build:zip:dst:ff && yarn build:zip:src:ff",
|
|
"build:zip:src:chrome": "rm -rf ./master-chrome-src.zip && zip -r -x '*build/*' -x '*node_modules*' -FS ./master-chrome-src.zip packages .editorconfig eslint.config.js rollup.config.js CHANGELOG.md CONTRIBUTING.md i18next-scanner.config.cjs LICENSE package.json README.md tsconfig.json yarn.lock .yarnrc.yml tsconfig.base.json tsconfig.build.json tsconfig.eslint.json tsconfig.webpack.json",
|
|
"build:zip:src:ff": "rm -rf ./master-ff-src.zip && zip -r -x '*build/*' -x '*node_modules*' -FS ./master-ff-src.zip packages .editorconfig eslint.config.js rollup.config.js CHANGELOG.md CONTRIBUTING.md i18next-scanner.config.cjs LICENSE package.json README.md tsconfig.json yarn.lock .yarnrc.yml tsconfig.base.json tsconfig.build.json tsconfig.eslint.json tsconfig.webpack.json",
|
|
"clean": "polkadot-dev-clean-build",
|
|
"diff": "rm -rf ff-diff && sh ./scripts/diff.sh",
|
|
"lint": "polkadot-dev-run-lint",
|
|
"postinstall": "polkadot-dev-yarn-only",
|
|
"test": "EXTENSION_PREFIX='test' polkadot-dev-run-test --loader ./packages/extension-mocks/src/loader-empty.js --env browser ^:.spec.tsx",
|
|
"test:one": "EXTENSION_PREFIX='test' polkadot-dev-run-test --env browser",
|
|
"tier2": "polkadot-exec-webpack --config scripts/tier2/webpack.config.cjs"
|
|
},
|
|
"devDependencies": {
|
|
"@polkadot/dev": "^0.83.3",
|
|
"@types/node": "^20.10.5",
|
|
"i18next-scanner": "^4.4.0",
|
|
"sinon-chrome": "^3.0.1"
|
|
},
|
|
"resolutions": {
|
|
"@polkadot/api": "^16.5.6",
|
|
"@polkadot/keyring": "https://git.lair.cafe/api/packages/quantus/npm/%40polkadot%2Fkeyring/-/14.0.3-quantus.2/keyring-14.0.3-quantus.2.tgz",
|
|
"@polkadot/networks": "https://git.lair.cafe/api/packages/quantus/npm/%40polkadot%2Fnetworks/-/14.0.3-quantus.2/networks-14.0.3-quantus.2.tgz",
|
|
"@polkadot/rpc-provider": "^16.5.6",
|
|
"@polkadot/types": "^16.5.6",
|
|
"@polkadot/ui-keyring": "https://git.lair.cafe/api/packages/quantus/npm/%40polkadot%2Fui-keyring/-/3.16.7-quantus.2/ui-keyring-3.16.7-quantus.2.tgz",
|
|
"@polkadot/util": "^14.0.3",
|
|
"@polkadot/util-crypto": "https://git.lair.cafe/api/packages/quantus/npm/%40polkadot%2Futil-crypto/-/14.0.3-quantus.2/util-crypto-14.0.3-quantus.2.tgz",
|
|
"@polkadot/x-fetch": "^14.0.3",
|
|
"@quantus/crypto": "^0.2.0",
|
|
"safe-buffer": "^5.2.1",
|
|
"typescript": "^5.5.4"
|
|
}
|
|
}
|