This commit is contained in:
Jaco
2022-06-18 15:34:57 +03:00
committed by GitHub
parent 58a18e1da5
commit 771f3bc6fd
19 changed files with 192 additions and 167 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
"@babel/core": "^7.18.5",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.18.3",
"@polkadot/dev": "^0.67.3",
"@polkadot/dev": "^0.67.4",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^28.1.1",
"copyfiles": "^2.4.1"
+1 -1
View File
@@ -29,7 +29,7 @@
"@polkadot/types": "8.8.3-12",
"@polkadot/types-augment": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
},
"devDependencies": {
"@polkadot/types-support": "8.8.3-12"
+1 -1
View File
@@ -26,7 +26,7 @@
"@babel/runtime": "^7.18.3",
"@polkadot/rpc-core": "8.8.3-12",
"@polkadot/types": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"rxjs": "^7.5.5"
}
}
+3 -3
View File
@@ -28,12 +28,12 @@
"@polkadot/types": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/types-create": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util-crypto": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"@polkadot/util-crypto": "^9.5.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api-augment": "8.8.3-12",
"@polkadot/keyring": "^9.4.2-22"
"@polkadot/keyring": "^9.5.1"
}
}
+2 -2
View File
@@ -30,8 +30,8 @@
"@polkadot/rpc-core": "8.8.3-12",
"@polkadot/types": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util-crypto": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"@polkadot/util-crypto": "^9.5.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
+3 -3
View File
@@ -27,7 +27,7 @@
"@polkadot/api-augment": "8.8.3-12",
"@polkadot/api-base": "8.8.3-12",
"@polkadot/api-derive": "8.8.3-12",
"@polkadot/keyring": "^9.4.2-22",
"@polkadot/keyring": "^9.5.1",
"@polkadot/rpc-augment": "8.8.3-12",
"@polkadot/rpc-core": "8.8.3-12",
"@polkadot/rpc-provider": "8.8.3-12",
@@ -36,8 +36,8 @@
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/types-create": "8.8.3-12",
"@polkadot/types-known": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util-crypto": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"@polkadot/util-crypto": "^9.5.1",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.5"
},
+1 -1
View File
@@ -27,6 +27,6 @@
"@polkadot/rpc-core": "8.8.3-12",
"@polkadot/types": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
}
}
+2 -2
View File
@@ -27,11 +27,11 @@
"@polkadot/rpc-augment": "8.8.3-12",
"@polkadot/rpc-provider": "8.8.3-12",
"@polkadot/types": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^9.4.2-22",
"@polkadot/keyring": "^9.5.1",
"@polkadot/rpc-augment": "8.8.3-12"
}
}
+6 -6
View File
@@ -24,14 +24,14 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/keyring": "^9.4.2-22",
"@polkadot/keyring": "^9.5.1",
"@polkadot/types": "8.8.3-12",
"@polkadot/types-support": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util-crypto": "^9.4.2-22",
"@polkadot/x-fetch": "^9.4.2-22",
"@polkadot/x-global": "^9.4.2-22",
"@polkadot/x-ws": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"@polkadot/util-crypto": "^9.5.1",
"@polkadot/x-fetch": "^9.5.1",
"@polkadot/x-global": "^9.5.1",
"@polkadot/x-ws": "^9.5.1",
"@substrate/connect": "0.7.6",
"eventemitter3": "^4.0.7",
"mock-socket": "^9.1.5",
+2 -2
View File
@@ -42,8 +42,8 @@
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/types-create": "8.8.3-12",
"@polkadot/types-support": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/x-ws": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"@polkadot/x-ws": "^9.5.1",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
"yargs": "^17.5.1"
+1 -1
View File
@@ -26,6 +26,6 @@
"@babel/runtime": "^7.18.3",
"@polkadot/types": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
}
}
+2 -2
View File
@@ -24,12 +24,12 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
},
"devDependencies": {
"@polkadot/types": "8.8.3-12",
"@polkadot/types-augment": "8.8.3-12",
"@polkadot/types-support": "8.8.3-12",
"@polkadot/util-crypto": "^9.4.2-22"
"@polkadot/util-crypto": "^9.5.1"
}
}
@@ -7,6 +7,10 @@ import { TypeRegistry } from '@polkadot/types';
import { Enum, Null, Text, U32 } from '@polkadot/types-codec';
import { u8aToHex } from '@polkadot/util';
import { performance } from '../test/performance';
const PEnum = Enum.with({ a: U32, b: U32 });
describe('Enum', (): void => {
const registry = new TypeRegistry();
@@ -449,4 +453,6 @@ describe('Enum', (): void => {
);
});
});
performance('Enum', 20_000, [[new Uint8Array([0, 31, 32, 33, 34])]], (v: Uint8Array) => new PEnum(registry, v));
});
+28 -9
View File
@@ -4,7 +4,7 @@
import type { HexString } from '@polkadot/util/types';
import type { AnyJson, Codec, CodecClass, IEnum, Inspect, IU8a, Registry } from '../types';
import { isHex, isNumber, isObject, isString, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
import { isHex, isNumber, isObject, isString, isU8a, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
import { mapToTypeMap, typesToMap } from '../utils';
import { Null } from './Null';
@@ -96,18 +96,37 @@ function extractDef (registry: Registry, _def: Record<string, string | CodecClas
};
}
function createFromValue (registry: Registry, def: TypesDef, index = 0, value?: unknown): Decoded {
const entry = Object.values(def).find((e) => e.index === index);
function getEntryType (def: TypesDef, checkIdx: number): CodecClass {
const values = Object.values(def);
if (isUndefined(entry)) {
throw new Error(`Unable to create Enum via index ${index}, in ${Object.keys(def).join(', ')}`);
for (let i = 0; i < values.length; i++) {
const { Type, index } = values[i];
if (index === checkIdx) {
return Type;
}
}
throw new Error(`Unable to create Enum via index ${checkIdx}, in ${Object.keys(def).join(', ')}`);
}
function createFromU8a (registry: Registry, def: TypesDef, index: number, value: Uint8Array): Decoded {
const Type = getEntryType(def, index);
return {
index,
value: value instanceof entry.Type
value: new Type(registry, value)
};
}
function createFromValue (registry: Registry, def: TypesDef, index = 0, value?: unknown): Decoded {
const Type = getEntryType(def, index);
return {
index,
value: value instanceof Type
? value
: new entry.Type(registry, value)
: new Type(registry, value)
};
}
@@ -139,7 +158,7 @@ function decodeEnum (registry: Registry, def: TypesDef, value?: unknown, index?:
// nested, we don't want to match isObject below
if (u8a.length) {
return createFromValue(registry, def, u8a[0], u8a.subarray(1));
return createFromU8a(registry, def, u8a[0], u8a.subarray(1));
}
} else if (value instanceof Enum) {
return createFromValue(registry, def, value.index, value.value);
@@ -187,7 +206,7 @@ export class Enum implements IEnum {
// shortcut isU8a as used in SCALE decoding
const decoded = isU8a(value) && value.length && !isNumber(index)
? createFromValue(registry, def, value[0], value.subarray(1))
? createFromU8a(registry, def, value[0], value.subarray(1))
: decodeEnum(registry, def, value, index);
this.registry = registry;
+1 -1
View File
@@ -25,7 +25,7 @@
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
},
"devDependencies": {
"@polkadot/types": "8.8.3-12"
+2 -2
View File
@@ -24,10 +24,10 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/networks": "^9.4.2-22",
"@polkadot/networks": "^9.5.1",
"@polkadot/types": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/types-create": "8.8.3-12",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
}
}
+1 -1
View File
@@ -24,6 +24,6 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/util": "^9.4.2-22"
"@polkadot/util": "^9.5.1"
}
}
+4 -4
View File
@@ -24,16 +24,16 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/keyring": "^9.4.2-22",
"@polkadot/keyring": "^9.5.1",
"@polkadot/types-augment": "8.8.3-12",
"@polkadot/types-codec": "8.8.3-12",
"@polkadot/types-create": "8.8.3-12",
"@polkadot/util": "^9.4.2-22",
"@polkadot/util-crypto": "^9.4.2-22",
"@polkadot/util": "^9.5.1",
"@polkadot/util-crypto": "^9.5.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^9.4.2-22",
"@polkadot/keyring": "^9.5.1",
"@polkadot/types-support": "8.8.3-12"
}
}
+125 -125
View File
@@ -1962,7 +1962,7 @@ __metadata:
"@polkadot/types-augment": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
languageName: unknown
linkType: soft
@@ -1973,7 +1973,7 @@ __metadata:
"@babel/runtime": ^7.18.3
"@polkadot/rpc-core": 8.8.3-12
"@polkadot/types": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
@@ -1985,12 +1985,12 @@ __metadata:
"@babel/runtime": ^7.18.3
"@polkadot/api": 8.8.3-12
"@polkadot/api-augment": 8.8.3-12
"@polkadot/keyring": ^9.4.2-22
"@polkadot/keyring": ^9.5.1
"@polkadot/types": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/types-create": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util-crypto": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/util-crypto": ^9.5.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
@@ -2009,8 +2009,8 @@ __metadata:
"@polkadot/types": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util-crypto": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/util-crypto": ^9.5.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
@@ -2023,7 +2023,7 @@ __metadata:
"@polkadot/api-augment": 8.8.3-12
"@polkadot/api-base": 8.8.3-12
"@polkadot/api-derive": 8.8.3-12
"@polkadot/keyring": ^9.4.2-22
"@polkadot/keyring": ^9.5.1
"@polkadot/rpc-augment": 8.8.3-12
"@polkadot/rpc-core": 8.8.3-12
"@polkadot/rpc-provider": 8.8.3-12
@@ -2033,16 +2033,16 @@ __metadata:
"@polkadot/types-create": 8.8.3-12
"@polkadot/types-known": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util-crypto": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/util-crypto": ^9.5.1
eventemitter3: ^4.0.7
rxjs: ^7.5.5
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.67.3":
version: 0.67.3
resolution: "@polkadot/dev@npm:0.67.3"
"@polkadot/dev@npm:^0.67.4":
version: 0.67.4
resolution: "@polkadot/dev@npm:0.67.4"
dependencies:
"@babel/cli": ^7.17.10
"@babel/core": ^7.18.5
@@ -2081,10 +2081,10 @@ __metadata:
eslint-plugin-header: ^3.1.1
eslint-plugin-import: ^2.26.0
eslint-plugin-import-newlines: ^1.2.2
eslint-plugin-n: ^15.2.2
eslint-plugin-n: ^15.2.3
eslint-plugin-promise: ^6.0.0
eslint-plugin-react: ^7.30.0
eslint-plugin-react-hooks: ^4.5.0
eslint-plugin-react-hooks: ^4.6.0
eslint-plugin-simple-import-sort: ^7.0.0
eslint-plugin-sort-destructure-keys: ^1.4.0
fs-extra: ^10.1.0
@@ -2101,7 +2101,7 @@ __metadata:
madge: ^5.0.1
minimatch: ^5.1.0
mkdirp: ^1.0.4
prettier: ^2.6.2
prettier: ^2.7.1
rimraf: ^3.0.2
rollup: ^2.75.6
rollup-plugin-cleanup: ^3.2.1
@@ -2129,32 +2129,32 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: c09a3bc40f9290b09b957046cff242d23456d4e4532a16bd823a059f8e202368e547b0ccd366f2dda1a2e81c9aaa9c71c8cfe047eea969c39b19f9f064e13c0d
checksum: 456e252db6492fb275d85ef91e57f29bd0a4beaf2d23209986a31abe10f8c2f719199ca86d888f930d229b90edce743831704c7506357590da4cfc28f3b279ec
languageName: node
linkType: hard
"@polkadot/keyring@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/keyring@npm:9.4.2-22"
"@polkadot/keyring@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/keyring@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/util": 9.4.2-22
"@polkadot/util-crypto": 9.4.2-22
"@polkadot/util": 9.5.1
"@polkadot/util-crypto": 9.5.1
peerDependencies:
"@polkadot/util": 9.4.2-22
"@polkadot/util-crypto": 9.4.2-22
checksum: 010bbb8b800dd8e255343bff8b52d02d9e0aec1011c8598b76fb512b47ef1c46fe4b43b6a3a91bb642661d711e6b0d2db6e688e55613b9ec55184cbb8b770efc
"@polkadot/util": 9.5.1
"@polkadot/util-crypto": 9.5.1
checksum: 9fefeb4ea558a1f927200f24da166f3f536768b2e435e66302d72f44f106e0186b458a63c5b3f4a30d0674f4f9a431a84a15cd5e0be4cf3398dae025eb0cb089
languageName: node
linkType: hard
"@polkadot/networks@npm:9.4.2-22, @polkadot/networks@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/networks@npm:9.4.2-22"
"@polkadot/networks@npm:9.5.1, @polkadot/networks@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/networks@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/util": 9.4.2-22
"@polkadot/util": 9.5.1
"@substrate/ss58-registry": ^1.22.0
checksum: 01de06696542cc2cddaa0650320efbb3f23ba18be279cb1f62b50c74431c35994d48459c66a46a3c6772659a829f6b1d7233a83f1aa63f86bc6014eb28a5c2f5
checksum: 3c9733088f647a7ad4d05e539b4b2d2dc482c40d764b18a4992efa1bfd34a0146df33324a1ea556ef0fda58440424e33038698fd13b7c82da4d9fa16820ea4d7
languageName: node
linkType: hard
@@ -2166,7 +2166,7 @@ __metadata:
"@polkadot/rpc-core": 8.8.3-12
"@polkadot/types": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
languageName: unknown
linkType: soft
@@ -2175,11 +2175,11 @@ __metadata:
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/keyring": ^9.4.2-22
"@polkadot/keyring": ^9.5.1
"@polkadot/rpc-augment": 8.8.3-12
"@polkadot/rpc-provider": 8.8.3-12
"@polkadot/types": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
@@ -2189,14 +2189,14 @@ __metadata:
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/keyring": ^9.4.2-22
"@polkadot/keyring": ^9.5.1
"@polkadot/types": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util-crypto": ^9.4.2-22
"@polkadot/x-fetch": ^9.4.2-22
"@polkadot/x-global": ^9.4.2-22
"@polkadot/x-ws": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/util-crypto": ^9.5.1
"@polkadot/x-fetch": ^9.5.1
"@polkadot/x-global": ^9.5.1
"@polkadot/x-ws": ^9.5.1
"@substrate/connect": 0.7.6
eventemitter3: ^4.0.7
mock-socket: ^9.1.5
@@ -2220,8 +2220,8 @@ __metadata:
"@polkadot/types-codec": 8.8.3-12
"@polkadot/types-create": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/x-ws": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/x-ws": ^9.5.1
"@types/websocket": ^1.0.5
"@types/yargs": ^17.0.10
handlebars: ^4.7.7
@@ -2243,7 +2243,7 @@ __metadata:
"@babel/runtime": ^7.18.3
"@polkadot/types": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
languageName: unknown
linkType: soft
@@ -2255,8 +2255,8 @@ __metadata:
"@polkadot/types": 8.8.3-12
"@polkadot/types-augment": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util-crypto": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/util-crypto": ^9.5.1
languageName: unknown
linkType: soft
@@ -2267,7 +2267,7 @@ __metadata:
"@babel/runtime": ^7.18.3
"@polkadot/types": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
languageName: unknown
linkType: soft
@@ -2276,11 +2276,11 @@ __metadata:
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/networks": ^9.4.2-22
"@polkadot/networks": ^9.5.1
"@polkadot/types": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/types-create": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
languageName: unknown
linkType: soft
@@ -2289,7 +2289,7 @@ __metadata:
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/util": ^9.4.2-22
"@polkadot/util": ^9.5.1
languageName: unknown
linkType: soft
@@ -2298,51 +2298,51 @@ __metadata:
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/keyring": ^9.4.2-22
"@polkadot/keyring": ^9.5.1
"@polkadot/types-augment": 8.8.3-12
"@polkadot/types-codec": 8.8.3-12
"@polkadot/types-create": 8.8.3-12
"@polkadot/types-support": 8.8.3-12
"@polkadot/util": ^9.4.2-22
"@polkadot/util-crypto": ^9.4.2-22
"@polkadot/util": ^9.5.1
"@polkadot/util-crypto": ^9.5.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:9.4.2-22, @polkadot/util-crypto@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/util-crypto@npm:9.4.2-22"
"@polkadot/util-crypto@npm:9.5.1, @polkadot/util-crypto@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/util-crypto@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@noble/hashes": 1.1.1
"@noble/secp256k1": 1.6.0
"@polkadot/networks": 9.4.2-22
"@polkadot/util": 9.4.2-22
"@polkadot/networks": 9.5.1
"@polkadot/util": 9.5.1
"@polkadot/wasm-crypto": ^6.1.1
"@polkadot/x-bigint": 9.4.2-22
"@polkadot/x-randomvalues": 9.4.2-22
"@scure/base": 1.1.0
"@polkadot/x-bigint": 9.5.1
"@polkadot/x-randomvalues": 9.5.1
"@scure/base": 1.1.1
ed2curve: ^0.3.0
tweetnacl: ^1.0.3
peerDependencies:
"@polkadot/util": 9.4.2-22
checksum: 970ca0b377e309925d4120febc5a3e934f76c18e39862684d83677a110d802eecea34a5f3513973ea3d50b3cf6f551330d018b3f1599e3b3ec7fc9affef5d97c
"@polkadot/util": 9.5.1
checksum: 9b3d6dad22bd012a9f6d36927ff3dbd7d71b362bbd270267a33f4c5b2067c691d0062a63a4fc7d5bdedbf19d16caf1805177c8a5aa8fe41919472c5ac820c2db
languageName: node
linkType: hard
"@polkadot/util@npm:9.4.2-22, @polkadot/util@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/util@npm:9.4.2-22"
"@polkadot/util@npm:9.5.1, @polkadot/util@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/util@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-bigint": 9.4.2-22
"@polkadot/x-global": 9.4.2-22
"@polkadot/x-textdecoder": 9.4.2-22
"@polkadot/x-textencoder": 9.4.2-22
"@polkadot/x-bigint": 9.5.1
"@polkadot/x-global": 9.5.1
"@polkadot/x-textdecoder": 9.5.1
"@polkadot/x-textencoder": 9.5.1
"@types/bn.js": ^5.1.0
bn.js: ^5.2.1
ip-regex: ^4.3.0
checksum: 9eba68d3d30d63420f091753b243c68c28f23ec78996992d77b863c2a96372beccf14456a323f5492d0f7206168fae7ddbd01f8dbb0fae952bea542c378a99a3
checksum: 57529b2e03f4dc47d4038dea9b29e3b7c9e4c3cd612ed4fa7cfbe20492f46a2744884773b56ad57a74a4a852bd2116af37983745a75d48bf455720a5cc7aea43
languageName: node
linkType: hard
@@ -2422,76 +2422,76 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-bigint@npm:9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-bigint@npm:9.4.2-22"
"@polkadot/x-bigint@npm:9.5.1":
version: 9.5.1
resolution: "@polkadot/x-bigint@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-global": 9.4.2-22
checksum: b0300ee2506853c227d50520105bff1bfac4dedfb76074aaff276defb9066b67280c00c535e469f40687703559ecfb522cabd16c1c0f5d63f72560455713676a
"@polkadot/x-global": 9.5.1
checksum: 0031935e55424eb348e9d01eab0b61632535f30a89121451a20e397c6012609b59b3b7b62f329669a01a1a204f02916c46538542eff042381f7ffb0aad2edb8f
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-fetch@npm:9.4.2-22"
"@polkadot/x-fetch@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/x-fetch@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-global": 9.4.2-22
"@types/node-fetch": ^2.6.1
"@polkadot/x-global": 9.5.1
"@types/node-fetch": ^2.6.2
node-fetch: ^2.6.7
checksum: 06ae0903afaa80d21f676b34c23b997fa5b8244b6f136117444839bae6ae4c6e3e4d9a779651337d4f3051bad8577b6f24f80d0030897124c2a3ba5fcad40c6c
checksum: 19c0b42d670be01c480243a8139af02607e5c8b672e61f2115f7ca35a5596dd3df275ae43e92e632fe66cfb119fd158129308a135f74e00845f8f09162810ac6
languageName: node
linkType: hard
"@polkadot/x-global@npm:9.4.2-22, @polkadot/x-global@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-global@npm:9.4.2-22"
"@polkadot/x-global@npm:9.5.1, @polkadot/x-global@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/x-global@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
checksum: 122bd156d5321e8948e3dd0459c9f6b8da759816da26fe65246023105d3f4391ba82eb5c253a0e0b74c4d253674b50629edbf38fd41b930bfbd27978ac6ae502
checksum: 330748b70fe76ba5f3850d0fbf1698c9b3db483aecb832fc70e8f899bc4eb9fd8f802d7773aa549f0da7324dc153951d81b1357e11ca6e4144685646bafff217
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-randomvalues@npm:9.4.2-22"
"@polkadot/x-randomvalues@npm:9.5.1":
version: 9.5.1
resolution: "@polkadot/x-randomvalues@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-global": 9.4.2-22
checksum: 94662a0ae2c05c7b71d31a947c8f3ece2d813a8b9ee059bac0a309b62bbab3c69cc12bb6a69ef7e3a378e8affcfc9b72d7975a053b2072452bfe6eafa1c08c93
"@polkadot/x-global": 9.5.1
checksum: e31f4721b06552144f305862a2efb64ee2e8b2efe4d47c70084f74e182091518a5947920fcc0d5d46b41449906aa51bed4415a4f8e813db20c4096a4b7e4166e
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-textdecoder@npm:9.4.2-22"
"@polkadot/x-textdecoder@npm:9.5.1":
version: 9.5.1
resolution: "@polkadot/x-textdecoder@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-global": 9.4.2-22
checksum: 97920d3b7e2a76d2a50161140b5bd188dd8f961bbcb72f32573d06c278bc0ca83bc04f3e2ae406706d89671480fcf54f5b079fe7ed0bdcbedc2dbd9ba85d7f1f
"@polkadot/x-global": 9.5.1
checksum: 300635ee12de2668b3689b4ba38a33846585bcfc532410f81d70e4c53f5b94780344b9cc74f304c62e7d2293df229982172bf4228023ed2f9500c940898ae0cc
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-textencoder@npm:9.4.2-22"
"@polkadot/x-textencoder@npm:9.5.1":
version: 9.5.1
resolution: "@polkadot/x-textencoder@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-global": 9.4.2-22
checksum: a3c0319579ab6bb193f2f6af234bfc7692d61dc87912c6d6365d2a4c7d68e6de8992cf67c6126c04d7f640326a8d476aad9c9145b4555de811533e6bd7e7d456
"@polkadot/x-global": 9.5.1
checksum: c3f29d9d057b1ce75c8afe33d6aa11750a940685c9ac14669dd640da78b0316e82c7a832a4c1f6314e09715446dcefcc8740ed66d9bb4aa56bcdb5a7cc23dae5
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^9.4.2-22":
version: 9.4.2-22
resolution: "@polkadot/x-ws@npm:9.4.2-22"
"@polkadot/x-ws@npm:^9.5.1":
version: 9.5.1
resolution: "@polkadot/x-ws@npm:9.5.1"
dependencies:
"@babel/runtime": ^7.18.3
"@polkadot/x-global": 9.4.2-22
"@polkadot/x-global": 9.5.1
"@types/websocket": ^1.0.5
websocket: ^1.0.34
checksum: cf9c4616a04712d611bdc90aa763601fc05937b1375774509bf1fc0f004c8cbcae7685d3435a4d3d5965359e318fe54a9f82d478768e84c026cf227376d32a11
checksum: 3974dd65aef267238360b7edb62cada4bb1dd09e2087e9064cda8850995897d814cdea8c780bc697515ce1209075616b10ae79b99c7a85352cb23206c4b83b3e
languageName: node
linkType: hard
@@ -2583,10 +2583,10 @@ __metadata:
languageName: node
linkType: hard
"@scure/base@npm:1.1.0":
version: 1.1.0
resolution: "@scure/base@npm:1.1.0"
checksum: ae65d7ae45f953faee04e359a980ee294444d1027efb99aa540b30ba09042aacfa855700e2abbc0b0197eaabb815f2b3f3b45e969c4732b05cbce07413d2111e
"@scure/base@npm:1.1.1":
version: 1.1.1
resolution: "@scure/base@npm:1.1.1"
checksum: b4fc810b492693e7e8d0107313ac74c3646970c198bbe26d7332820886fa4f09441991023ec9aa3a2a51246b74409ab5ebae2e8ef148bbc253da79ac49130309
languageName: node
linkType: hard
@@ -2816,13 +2816,13 @@ __metadata:
languageName: node
linkType: hard
"@types/node-fetch@npm:^2.6.1":
version: 2.6.1
resolution: "@types/node-fetch@npm:2.6.1"
"@types/node-fetch@npm:^2.6.2":
version: 2.6.2
resolution: "@types/node-fetch@npm:2.6.2"
dependencies:
"@types/node": "*"
form-data: ^3.0.0
checksum: a3e5d7f413d1638d795dff03f7b142b1b0e0c109ed210479000ce7b3ea11f9a6d89d9a024c96578d9249570c5fe5287a5f0f4aaba98199222230196ff2d6b283
checksum: 6f73b1470000d303d25a6fb92875ea837a216656cb7474f66cdd67bb014aa81a5a11e7ac9c21fe19bee9ecb2ef87c1962bceeaec31386119d1ac86e4c30ad7a6
languageName: node
linkType: hard
@@ -4948,9 +4948,9 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-n@npm:^15.2.2":
version: 15.2.2
resolution: "eslint-plugin-n@npm:15.2.2"
"eslint-plugin-n@npm:^15.2.3":
version: 15.2.3
resolution: "eslint-plugin-n@npm:15.2.3"
dependencies:
builtins: ^5.0.1
eslint-plugin-es: ^4.1.0
@@ -4962,7 +4962,7 @@ __metadata:
semver: ^7.3.7
peerDependencies:
eslint: ">=7.0.0"
checksum: 82394c8cf9e3fc4f79f6d7438d9c8a5f2f6704b215adfe5beb731b254471aae879c30a784c5af914a51c4e3e855f7a2e655540c2e8aacab6112601b97bd00528
checksum: da02bbf3152c49f9a09ab253f70e85f9d62af0f40f3d1882cf8a5fc9b9e07465c7f9632feae002ee97bce0598b408f017a4bb6c6f152b0870bad6f50aa430820
languageName: node
linkType: hard
@@ -4975,12 +4975,12 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-react-hooks@npm:^4.5.0":
version: 4.5.0
resolution: "eslint-plugin-react-hooks@npm:4.5.0"
"eslint-plugin-react-hooks@npm:^4.6.0":
version: 4.6.0
resolution: "eslint-plugin-react-hooks@npm:4.6.0"
peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
checksum: 0389377de635dd9b769f6f52e2c9e6ab857a0cdfecc3734c95ce81676a752e781bb5c44fd180e01953a03a77278323d90729776438815557b069ceb988ab1f9f
checksum: 23001801f14c1d16bf0a837ca7970d9dd94e7b560384b41db378b49b6e32dc43d6e2790de1bd737a652a86f81a08d6a91f402525061b47719328f586a57e86c3
languageName: node
linkType: hard
@@ -8671,12 +8671,12 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"prettier@npm:^1.18.2 || ^2.0.0, prettier@npm:^2.6.2":
version: 2.6.2
resolution: "prettier@npm:2.6.2"
"prettier@npm:^1.18.2 || ^2.0.0, prettier@npm:^2.7.1":
version: 2.7.1
resolution: "prettier@npm:2.7.1"
bin:
prettier: bin-prettier.js
checksum: 48d08dde8e9fb1f5bccdd205baa7f192e9fc8bc98f86e1b97d919de804e28c806b0e6cc685e4a88211aa7987fa9668f30baae19580d87ced3ed0f2ec6572106f
checksum: 55a4409182260866ab31284d929b3cb961e5fdb91fe0d2e099dac92eaecec890f36e524b4c19e6ceae839c99c6d7195817579cdffc8e2c80da0cb794463a748b
languageName: node
linkType: hard
@@ -9253,7 +9253,7 @@ resolve@^2.0.0-next.3:
"@babel/core": ^7.18.5
"@babel/register": ^7.17.7
"@babel/runtime": ^7.18.3
"@polkadot/dev": ^0.67.3
"@polkadot/dev": ^0.67.4
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^28.1.1
copyfiles: ^2.4.1