Filtering `filterAvailable` by `isQuantumSafe` removed Polkadot and Kusama from
`selectableNetworks`, and `@polkadot/types-known` throws for a chain it holds
upgrade history for but cannot find:
Error: Unable to find info for chain kusama
at mapRaw (@polkadot/types-known/upgrades/index.js:13:15)
which made `@polkadot/api` fail at *import* — nothing to do with Quantus, and
not diagnosable from the message.
The mistake was gating a library primitive. These lists say what Substrate
knows about; what a wallet offers is the wallet's decision, and `isQuantumSafe`
stays exported so the extension can make it in its own chain list. Keeping them
complete also means a pasted Polkadot address still decodes and renders as what
it is — recognisable, and therefore refusable. A wallet that cannot decode an
address it will not accept can only say "invalid", which reads as a typo rather
than a warning.
`index.spec.ts` is restored from upstream with only the testnet-exposure and
shared-prefix deltas re-applied, since its network-ordering assertions had
started passing vacuously once Polkadot and Kusama left the list.
Also corrects Heisenberg's token symbol to HEI; `system_properties` on
wss://a1-heisenberg.quantus.cat says HEI, not QTC.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012uDUodEcRbBwNRi3UCmw8f
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
{
|
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
"bugs": "https://github.com/polkadot-js/common/issues",
|
|
"description": "A collection of useful crypto utilities for @polkadot",
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
|
"license": "Apache-2.0",
|
|
"name": "@polkadot/util-crypto",
|
|
"repository": {
|
|
"directory": "packages/util-crypto",
|
|
"type": "git",
|
|
"url": "https://github.com/polkadot-js/common.git"
|
|
},
|
|
"sideEffects": [
|
|
"./bundleInit.js",
|
|
"./bundleInit.cjs",
|
|
"./packageDetect.js",
|
|
"./packageDetect.cjs"
|
|
],
|
|
"type": "module",
|
|
"version": "14.0.3-quantus.2",
|
|
"browser": {
|
|
"crypto": false,
|
|
"stream": false
|
|
},
|
|
"main": "index.js",
|
|
"dependencies": {
|
|
"@noble/curves": "^1.3.0",
|
|
"@noble/hashes": "^1.3.3",
|
|
"@polkadot/networks": "14.0.3-quantus.2",
|
|
"@polkadot/util": "14.0.3",
|
|
"@polkadot/wasm-crypto": "^7.5.3",
|
|
"@polkadot/wasm-util": "^7.5.3",
|
|
"@polkadot/x-bigint": "14.0.3",
|
|
"@polkadot/x-randomvalues": "14.0.3",
|
|
"@quantus/crypto": "^0.1.0",
|
|
"@scure/base": "^1.1.7",
|
|
"@scure/sr25519": "^0.2.0",
|
|
"tslib": "^2.8.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@polkadot/util": "14.0.3"
|
|
}
|
|
}
|