Swap to objectProperty from @polkadot/util (#4183)
* Swap to objectProperty from @polkadot/util * Re-apply
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@
|
||||
"@babel/core": "^7.16.0",
|
||||
"@babel/register": "^7.16.0",
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/dev": "^0.63.26",
|
||||
"@polkadot/dev": "^0.63.27",
|
||||
"@polkadot/ts": "^0.4.13",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^27.0.2",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/api": "6.6.2-26",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
"@polkadot/api": "6.6.2-26",
|
||||
"@polkadot/rpc-core": "6.6.2-26",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util-crypto": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.1",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/rpc-provider": "6.6.2-26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/api-derive": "6.6.2-26",
|
||||
"@polkadot/keyring": "^7.8.1",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/rpc-core": "6.6.2-26",
|
||||
"@polkadot/rpc-provider": "6.6.2-26",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/types-known": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util-crypto": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.4.0"
|
||||
}
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/rpc-provider": "6.6.2-26",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.1"
|
||||
"@polkadot/keyring": "^7.8.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,15 +25,15 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util-crypto": "^7.8.1",
|
||||
"@polkadot/x-fetch": "^7.8.1",
|
||||
"@polkadot/x-global": "^7.8.1",
|
||||
"@polkadot/x-ws": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"@polkadot/x-fetch": "^7.8.2",
|
||||
"@polkadot/x-global": "^7.8.2",
|
||||
"@polkadot/x-ws": "^7.8.2",
|
||||
"eventemitter3": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.1",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"mock-socket": "^9.0.7",
|
||||
"nock": "^13.1.4"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"@polkadot/rpc-provider": "6.6.2-26",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/types-support": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.2.1"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/networks": "^7.8.1",
|
||||
"@polkadot/networks": "^7.8.2",
|
||||
"@polkadot/types": "6.6.2-26",
|
||||
"@polkadot/util": "^7.8.1"
|
||||
"@polkadot/util": "^7.8.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/util": "^7.8.1"
|
||||
"@polkadot/util": "^7.8.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@polkadot/util": "^7.8.1",
|
||||
"@polkadot/util-crypto": "^7.8.1",
|
||||
"@polkadot/util": "^7.8.2",
|
||||
"@polkadot/util-crypto": "^7.8.2",
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.8.1",
|
||||
"@polkadot/keyring": "^7.8.2",
|
||||
"@polkadot/types-support": "6.6.2-26",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.12.0"
|
||||
|
||||
@@ -5,10 +5,10 @@ import type { HexString } from '@polkadot/util/types';
|
||||
import type { CodecHash, Hash } from '../interfaces';
|
||||
import type { AnyJson, Codec, Constructor, IEnum, Registry } from '../types';
|
||||
|
||||
import { assert, hexToU8a, isHex, isNumber, isObject, isString, isU8a, isUndefined, stringCamelCase, stringify, stringUpperFirst, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
import { assert, hexToU8a, isHex, isNumber, isObject, isString, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, stringUpperFirst, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { Null } from '../primitive/Null';
|
||||
import { defineProperties, mapToTypeMap, typesToMap } from './utils';
|
||||
import { mapToTypeMap, typesToMap } from './utils';
|
||||
|
||||
// export interface, this is used in Enum.with, so required as public by TS
|
||||
export interface EnumConstructor<T = Codec> {
|
||||
@@ -214,8 +214,8 @@ export class Enum implements IEnum {
|
||||
constructor (registry: Registry, value?: unknown, index?: number) {
|
||||
super(registry, Types, value, index);
|
||||
|
||||
defineProperties(this, isKeys, (_, i) => this.type === keys[i]);
|
||||
defineProperties(this, asKeys, (k, i): Codec => {
|
||||
objectProperties(this, isKeys, (_, i) => this.type === keys[i]);
|
||||
objectProperties(this, asKeys, (k, i): Codec => {
|
||||
assert(this[isKeys[i] as keyof this], () => `Cannot convert '${this.type}' via ${k}`);
|
||||
|
||||
return this.value;
|
||||
|
||||
@@ -5,9 +5,9 @@ import type { HexString } from '@polkadot/util/types';
|
||||
import type { CodecHash, Hash } from '../interfaces/runtime';
|
||||
import type { AnyJson, Codec, Registry } from '../types';
|
||||
|
||||
import { isFunction, stringify } from '@polkadot/util';
|
||||
import { isFunction, objectProperties, stringify } from '@polkadot/util';
|
||||
|
||||
import { compareMap, defineProperties } from './utils';
|
||||
import { compareMap } from './utils';
|
||||
|
||||
/** @internal */
|
||||
function decodeJson (value?: Record<string, unknown> | null): [string, any][] {
|
||||
@@ -34,7 +34,7 @@ export class Json extends Map<string, any> implements Codec {
|
||||
|
||||
this.registry = registry;
|
||||
|
||||
defineProperties(this, decoded.map(([k]) => k), (k) => this.get(k));
|
||||
objectProperties(this, decoded.map(([k]) => k), (k) => this.get(k));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,9 +5,9 @@ import type { HexString } from '@polkadot/util/types';
|
||||
import type { CodecHash, Hash } from '../interfaces/runtime';
|
||||
import type { Constructor, ISet, Registry } from '../types';
|
||||
|
||||
import { assert, BN, bnToBn, bnToU8a, isBn, isNumber, isString, isU8a, isUndefined, stringCamelCase, stringify, stringUpperFirst, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { assert, BN, bnToBn, bnToU8a, isBn, isNumber, isString, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, stringUpperFirst, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { compareArray, defineProperties } from './utils';
|
||||
import { compareArray } from './utils';
|
||||
|
||||
type SetValues = Record<string, number | BN>;
|
||||
|
||||
@@ -115,7 +115,7 @@ export class CodecSet extends Set<string> implements ISet<string> {
|
||||
constructor (registry: Registry, value?: unknown) {
|
||||
super(registry, values, value as undefined, bitLength);
|
||||
|
||||
defineProperties(this, isKeys, (_, i) => this.strings.includes(keys[i]));
|
||||
objectProperties(this, isKeys, (_, i) => this.strings.includes(keys[i]));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ import type { HexString } from '@polkadot/util/types';
|
||||
import type { CodecHash, Hash } from '../interfaces/runtime';
|
||||
import type { AnyJson, BareOpts, Codec, Constructor, ConstructorDef, IStruct, Registry } from '../types';
|
||||
|
||||
import { assert, hexToU8a, isBoolean, isFunction, isHex, isObject, isU8a, isUndefined, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
import { assert, hexToU8a, isBoolean, isFunction, isHex, isObject, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { compareMap, decodeU8a, defineProperties, mapToTypeMap, typesToMap } from './utils';
|
||||
import { compareMap, decodeU8a, mapToTypeMap, typesToMap } from './utils';
|
||||
|
||||
type TypesDef<T = Codec> = Record<string, string | Constructor<T>>;
|
||||
|
||||
@@ -153,7 +153,7 @@ export class Struct<
|
||||
constructor (registry: Registry, value?: unknown) {
|
||||
super(registry, Types, value as HexString, jsonMap);
|
||||
|
||||
defineProperties(this, keys, (k) => this.get(k));
|
||||
objectProperties(this, keys, (k) => this.get(k));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { isUndefined } from '@polkadot/util';
|
||||
|
||||
const SKIP_KEYS = ['entries', 'hash', 'keys', 'values'];
|
||||
|
||||
export function defineProperty (that: object, key: string, get: () => unknown): void {
|
||||
if (SKIP_KEYS.includes(key)) {
|
||||
return defineProperty(that, `_${key}`, get);
|
||||
}
|
||||
|
||||
// We use an isUndefined check here, not hasOwwnProperty since there are set in derived
|
||||
// classes (inside with) and _Own_ properties refers to the class only, not parents
|
||||
if (isUndefined((that as Record<string, unknown>)[key])) {
|
||||
Object.defineProperty(that, key, { enumerable: true, get });
|
||||
}
|
||||
}
|
||||
|
||||
export function defineProperties (that: object, keys: string[], get: (k: string, i: number) => unknown): void {
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
const index = i;
|
||||
|
||||
defineProperty(that, key, () => get(key, index));
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ export { compareArray } from './compareArray';
|
||||
export { compareMap } from './compareMap';
|
||||
export { compareSet } from './compareSet';
|
||||
export { decodeU8a, decodeU8aVec } from './decodeU8a';
|
||||
export { defineProperties, defineProperty } from './defineProperty';
|
||||
export { mapToTypeMap } from './mapToTypeMap';
|
||||
export { typeToConstructor } from './typeToConstructor';
|
||||
export { sortAsc, sortSet, sortMap } from './sortValues';
|
||||
|
||||
@@ -10,10 +10,9 @@ import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, CallBase, ExtrinsicPayloadValu
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
import type { ExtrinsicValueV4 } from './v4/Extrinsic';
|
||||
|
||||
import { assert, compactAddLength, compactFromU8a, isHex, isU8a, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { assert, compactAddLength, compactFromU8a, isHex, isU8a, objectProperty, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { Base } from '../codec/Base';
|
||||
import { defineProperty } from '../codec/utils';
|
||||
import { BIT_SIGNED, BIT_UNSIGNED, DEFAULT_VERSION, UNMASK_VERSION } from './constants';
|
||||
|
||||
interface CreateOptions {
|
||||
@@ -41,13 +40,12 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends Base<ExtrinsicVx | Extr
|
||||
super(registry, value, initialU8aLength);
|
||||
|
||||
const signKeys = Object.keys(registry.getSignedExtensionTypes());
|
||||
const getter = (key: string) => (this._raw as ExtrinsicVx).signature[key as 'signer'];
|
||||
|
||||
// This is on the abstract class, ensuring that hasOwnProperty operates
|
||||
// correctly, i.e. it needs to be on the base class exposing it
|
||||
for (let i = 0; i < signKeys.length; i++) {
|
||||
const key = signKeys[i];
|
||||
|
||||
defineProperty(this, key, () => (this._raw as ExtrinsicVx).signature[key as 'signer']);
|
||||
objectProperty(this, signKeys[i], getter);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,12 +5,11 @@ import type { HexString } from '@polkadot/util/types';
|
||||
import type { Address, Balance, BlockNumber, Call, ExtrinsicEra, Hash, Index, RuntimeVersion } from '../interfaces';
|
||||
import type { Codec, ISignerPayload, Registry, SignerPayloadJSON, SignerPayloadRaw } from '../types';
|
||||
|
||||
import { objectSpread, u8aToHex } from '@polkadot/util';
|
||||
import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { Compact } from '../codec/Compact';
|
||||
import { Option } from '../codec/Option';
|
||||
import { Struct } from '../codec/Struct';
|
||||
import { defineProperty } from '../codec/utils';
|
||||
import { Vec } from '../codec/Vec';
|
||||
import { Text } from '../primitive/Text';
|
||||
import { u8 } from '../primitive/U8';
|
||||
@@ -57,6 +56,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
super(registry, objectSpread<Record<string, string>>({}, extensionTypes, knownTypes), value);
|
||||
|
||||
this._extraTypes = {};
|
||||
const getter = (key: string) => this.get(key);
|
||||
|
||||
// add all extras that are not in the base types
|
||||
for (const [key, type] of Object.entries(extensionTypes)) {
|
||||
@@ -64,7 +64,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
this._extraTypes[key] = type;
|
||||
}
|
||||
|
||||
defineProperty(this, key, () => this.get(key));
|
||||
objectProperty(this, key, getter);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,11 @@ import type { Address, Balance, Call, Index } from '../../interfaces/runtime';
|
||||
import type { ExtrinsicPayloadValue, IExtrinsicSignature, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
||||
import type { ExtrinsicSignatureOptions } from '../types';
|
||||
|
||||
import { assert, isU8a, isUndefined, objectSpread, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
import { assert, isU8a, isUndefined, objectProperties, objectSpread, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { Compact } from '../../codec/Compact';
|
||||
import { Enum } from '../../codec/Enum';
|
||||
import { Struct } from '../../codec/Struct';
|
||||
import { defineProperty } from '../../codec/utils';
|
||||
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants';
|
||||
import { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload';
|
||||
|
||||
@@ -50,11 +49,7 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
||||
: FAKE_NONE;
|
||||
this.#signKeys = Object.keys(signTypes);
|
||||
|
||||
for (let i = 0; i < this.#signKeys.length; i++) {
|
||||
const key = this.#signKeys[i];
|
||||
|
||||
defineProperty(this, key, () => this.get(key));
|
||||
}
|
||||
objectProperties(this, this.#signKeys, (k) => this.get(k));
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -1847,7 +1847,7 @@ __metadata:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/api": 6.6.2-26
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -1858,12 +1858,12 @@ __metadata:
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/api": 6.6.2-26
|
||||
"@polkadot/keyring": ^7.8.1
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/rpc-core": 6.6.2-26
|
||||
"@polkadot/rpc-provider": 6.6.2-26
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util-crypto": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -1874,21 +1874,21 @@ __metadata:
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/api-derive": 6.6.2-26
|
||||
"@polkadot/keyring": ^7.8.1
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/rpc-core": 6.6.2-26
|
||||
"@polkadot/rpc-provider": 6.6.2-26
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/types-known": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util-crypto": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
eventemitter3: ^4.0.7
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/dev@npm:^0.63.26":
|
||||
version: 0.63.26
|
||||
resolution: "@polkadot/dev@npm:0.63.26"
|
||||
"@polkadot/dev@npm:^0.63.27":
|
||||
version: 0.63.27
|
||||
resolution: "@polkadot/dev@npm:0.63.27"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.16.0
|
||||
"@babel/core": ^7.16.0
|
||||
@@ -1973,30 +1973,30 @@ __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: 531714b546187b96ed0481275088b8929b8a93b7f74ed14ee838a31c380b21867e88242c546ab948947eed783d719d703dabf4529d8a08e0b54df01e0f4f3aff
|
||||
checksum: 73a198a215c2ceb8d9c05a44879c62c9ddd82ddd075c66c8c07c2e1f9093de42bc94fd12ae790f709f6e8d4384c9c22861ab2fe0f2c5dd125ea094e16d5bc67c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/keyring@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/keyring@npm:7.8.1"
|
||||
"@polkadot/keyring@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/keyring@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/util": 7.8.1
|
||||
"@polkadot/util-crypto": 7.8.1
|
||||
"@polkadot/util": 7.8.2
|
||||
"@polkadot/util-crypto": 7.8.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 7.8.1
|
||||
"@polkadot/util-crypto": 7.8.1
|
||||
checksum: e83ea2422d95e09ed8a9e093e321836961d855742d0bdd74f3fc44d739a8294e7627348dbb273bdc3c00e2ab8552ec3fc7dd1f1ef5f11e12b29d46c00fda7bb0
|
||||
"@polkadot/util": 7.8.2
|
||||
"@polkadot/util-crypto": 7.8.2
|
||||
checksum: 9c35be4bebd2930f57a6379cd4dd369b141f843b57b750ebaaa88e4f3e301b906aeb99097cda1bc3147883be554f8e9ed9dd05ecd1487027a0857d141b4a84bf
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/networks@npm:7.8.1, @polkadot/networks@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/networks@npm:7.8.1"
|
||||
"@polkadot/networks@npm:7.8.2, @polkadot/networks@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/networks@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
checksum: b2bdd0f8103fa375bf0c7955537a5096caaf030da97f76904c611887581cc588e4ee80a90553c00f1bfbf037818a8ec60300247b2c08557d1bfa9143d6068909
|
||||
checksum: e94cc7a4f0767273a3efef07bde941296b730e8364545b92e01a3b6b627d54ed02d4f4ef7798e43ffd192a2e5a0d116cc7e35d5ccca42a888caa190d51c56b8a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2005,10 +2005,10 @@ __metadata:
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/keyring": ^7.8.1
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/rpc-provider": 6.6.2-26
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -2018,13 +2018,13 @@ __metadata:
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/keyring": ^7.8.1
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util-crypto": ^7.8.1
|
||||
"@polkadot/x-fetch": ^7.8.1
|
||||
"@polkadot/x-global": ^7.8.1
|
||||
"@polkadot/x-ws": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
"@polkadot/x-fetch": ^7.8.2
|
||||
"@polkadot/x-global": ^7.8.2
|
||||
"@polkadot/x-ws": ^7.8.2
|
||||
eventemitter3: ^4.0.7
|
||||
mock-socket: ^9.0.7
|
||||
nock: ^13.1.4
|
||||
@@ -2051,7 +2051,7 @@ __metadata:
|
||||
"@polkadot/rpc-provider": 6.6.2-26
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/types-support": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@types/websocket": ^1.0.4
|
||||
"@types/yargs": ^17.0.5
|
||||
handlebars: ^4.7.7
|
||||
@@ -2071,9 +2071,9 @@ __metadata:
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/networks": ^7.8.1
|
||||
"@polkadot/networks": ^7.8.2
|
||||
"@polkadot/types": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2082,7 +2082,7 @@ __metadata:
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2091,25 +2091,25 @@ __metadata:
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/keyring": ^7.8.1
|
||||
"@polkadot/keyring": ^7.8.2
|
||||
"@polkadot/types-support": 6.6.2-26
|
||||
"@polkadot/util": ^7.8.1
|
||||
"@polkadot/util-crypto": ^7.8.1
|
||||
"@polkadot/util": ^7.8.2
|
||||
"@polkadot/util-crypto": ^7.8.2
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.12.0
|
||||
rxjs: ^7.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util-crypto@npm:7.8.1, @polkadot/util-crypto@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/util-crypto@npm:7.8.1"
|
||||
"@polkadot/util-crypto@npm:7.8.2, @polkadot/util-crypto@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/util-crypto@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/networks": 7.8.1
|
||||
"@polkadot/util": 7.8.1
|
||||
"@polkadot/networks": 7.8.2
|
||||
"@polkadot/util": 7.8.2
|
||||
"@polkadot/wasm-crypto": ^4.2.1
|
||||
"@polkadot/x-randomvalues": 7.8.1
|
||||
"@polkadot/x-randomvalues": 7.8.2
|
||||
base-x: ^3.0.9
|
||||
base64-js: ^1.5.1
|
||||
blakejs: ^1.1.1
|
||||
@@ -2123,23 +2123,23 @@ __metadata:
|
||||
tweetnacl: ^1.0.3
|
||||
xxhashjs: ^0.2.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 7.8.1
|
||||
checksum: 420e89f614273f78b6b23081db9d076bbec449c035dc13ca36f4cd919bdab180c3e5d3d5b52ac39325d0661e31640a064bff8a31b05a7487290a98f4fc04e4a2
|
||||
"@polkadot/util": 7.8.2
|
||||
checksum: 7cc3068e93572451ff4929867fed7577968f640c51a18d07cfec15b3526b237f133929882f461b815e6421ff2c7c41a1462c97670381705139f4f1883d9b7e9e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util@npm:7.8.1, @polkadot/util@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/util@npm:7.8.1"
|
||||
"@polkadot/util@npm:7.8.2, @polkadot/util@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/util@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/x-textdecoder": 7.8.1
|
||||
"@polkadot/x-textencoder": 7.8.1
|
||||
"@polkadot/x-textdecoder": 7.8.2
|
||||
"@polkadot/x-textencoder": 7.8.2
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.12.0
|
||||
camelcase: ^6.2.0
|
||||
ip-regex: ^4.3.0
|
||||
checksum: f645cc0925c4f2875d9ab7332644c0ffd8ec6f4d419723204731a2732ba31b6c90c192b2957bd56e5dbc8df364125cab0a716a5097030ae16cad1daff6ff15a5
|
||||
checksum: 6c7320c37c14b9a444a931654a728a5eca365554270168bcbd186dc9e9901240f07a2c1d8063c5833d7c1bdb7f081f9ae72a7f17e29420ffa9c12d2cfe65aa90
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2175,66 +2175,66 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/x-fetch@npm:7.8.1"
|
||||
"@polkadot/x-fetch@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/x-fetch@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/x-global": 7.8.1
|
||||
"@polkadot/x-global": 7.8.2
|
||||
"@types/node-fetch": ^2.5.12
|
||||
node-fetch: ^2.6.6
|
||||
checksum: ffaf64f11b661af2738e1c86aa5e070c872bc3debe2df7253656098ae027972e27a831dda011ccdc63e2b7d093cb3ab006e40ff41d5d92c21b6932158f659471
|
||||
checksum: 0e2dddc69bed82b66df109c62a3f515bba386b3129c5f0669bddf37bfdea46545341ba2e77e7b4f77a007d4c8920be7e024f10079e6af10b9816fee82d6872a9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-global@npm:7.8.1, @polkadot/x-global@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/x-global@npm:7.8.1"
|
||||
"@polkadot/x-global@npm:7.8.2, @polkadot/x-global@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/x-global@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
checksum: 3b77ee598c9e7b980d7cf429182561054dc8ff672c9533f81a477be63a76aa41f368a3ce0944be999a478d53657b5a49392220ff875c970c3e78adfe57135052
|
||||
checksum: 9fac7a7a6b6c1c2507e9bd6c04874627827202f789b35f76a4945b46e5afb1f726c6683250261b5b022531b308e60cda7b324bd5912b35ad14640515063f1358
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-randomvalues@npm:7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/x-randomvalues@npm:7.8.1"
|
||||
"@polkadot/x-randomvalues@npm:7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/x-randomvalues@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/x-global": 7.8.1
|
||||
checksum: 6d694cc92816e0f6f47e49c47171a1bcf6b2e4cc2fa65b0f8f6a5c518cd8a3bf8aaa96a39738ef49815dabcde5ce8a00a5ff8d722228b38690eae99f495ecaf7
|
||||
"@polkadot/x-global": 7.8.2
|
||||
checksum: 9f0927ed2429ed0f94ca5481b64eb378b139399282e9677637141bc4829bf76a85e37806d8050eab08b0969c54d2073d8f5899921a031c5c543ffda43ea0ed03
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textdecoder@npm:7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/x-textdecoder@npm:7.8.1"
|
||||
"@polkadot/x-textdecoder@npm:7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/x-textdecoder@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/x-global": 7.8.1
|
||||
checksum: 90d55c772e746afea897ae1689333fea92fcca89a5d1ba059bf105a637d3aa85899b6374d9824e0a97a358f008a966fcb349d8993b3325b104a7a3c30a8a40ac
|
||||
"@polkadot/x-global": 7.8.2
|
||||
checksum: 5e26717ce427070a5c9670517a998e7d822fe796b6ed67ed9aa06ad9d9971d88f3e8eb42ab2163a237f761390d9cc76791faa903e97085e65dc7c299926a9086
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textencoder@npm:7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/x-textencoder@npm:7.8.1"
|
||||
"@polkadot/x-textencoder@npm:7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/x-textencoder@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/x-global": 7.8.1
|
||||
checksum: bcb8d33a30a54b69caa85cdd8516041671a7b32b8e9bff407b208a9e6b2d45a412f78a6630d15a34dff2f236ce1feadd81678f4ee9858802af05d388781e6743
|
||||
"@polkadot/x-global": 7.8.2
|
||||
checksum: 3464d122aeaa2a45d3576c7862e0b703726cff86671b921a48a99d518209d9a13cfb86229f723003d3e91ce4d3b0f2bf48374becf5662fac890e229d2b31315d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-ws@npm:^7.8.1":
|
||||
version: 7.8.1
|
||||
resolution: "@polkadot/x-ws@npm:7.8.1"
|
||||
"@polkadot/x-ws@npm:^7.8.2":
|
||||
version: 7.8.2
|
||||
resolution: "@polkadot/x-ws@npm:7.8.2"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/x-global": 7.8.1
|
||||
"@polkadot/x-global": 7.8.2
|
||||
"@types/websocket": ^1.0.4
|
||||
websocket: ^1.0.34
|
||||
checksum: d97d8f898de4049f48d47fb2797001fccbc4f2feda2364ba37712f7b349d69856810a206854d81ea4e81fe00ce4a9ed20c555e9a474caee237823071e5c3b6d0
|
||||
checksum: 64b5965bc3bbf441611f15b4dfc019d91381ba3d5334d5e01cc409d5e140742d43c621e03dda4a07c6b31933e3936b8cf33f7d23647c8d392142131113ec5ae8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -8952,7 +8952,7 @@ resolve@^2.0.0-next.3:
|
||||
"@babel/core": ^7.16.0
|
||||
"@babel/register": ^7.16.0
|
||||
"@babel/runtime": ^7.16.0
|
||||
"@polkadot/dev": ^0.63.26
|
||||
"@polkadot/dev": ^0.63.27
|
||||
"@polkadot/ts": ^0.4.13
|
||||
"@polkadot/typegen": "workspace:packages/typegen"
|
||||
"@types/jest": ^27.0.2
|
||||
|
||||
Reference in New Issue
Block a user