Compare commits

...
16 Commits
Author SHA1 Message Date
Github Actions 8a75c9bac0 [CI Skip] release/stable 2.8.1
skip-checks: true
2020-11-23 12:23:26 +00:00
Jaco Greeff ab05224c71 2.8 (#2869) 2020-11-23 13:15:10 +01:00
Github Actions 986e8fbb20 [CI Skip] release/beta 2.7.2-6
skip-checks: true
2020-11-22 13:57:53 +00:00
Jaco Greeff 2906b02e41 IndicesLookupSource (#2867) 2020-11-22 14:51:22 +01:00
Github Actions 683c37b171 [CI Skip] release/beta 2.7.2-5
skip-checks: true
2020-11-22 12:42:30 +00:00
Jaco Greeff 20bdc6e63d Additional type detection in MultiAddress (#2866)
* Additional type detection in MultiAddress

* instanceof self
2020-11-22 13:35:48 +01:00
Github Actions b200b20972 [CI Skip] release/beta 2.7.2-4
skip-checks: true
2020-11-19 11:20:41 +00:00
Jaco Greeff 7a4fe4fe5f Return Raw results on storage decode failures (#2862) 2020-11-19 12:12:00 +01:00
Github Actions aa6ec6c9dc [CI Skip] release/beta 2.7.2-3
skip-checks: true
2020-11-18 14:01:46 +00:00
Jaco Greeff 0871e074c7 RegistryMetadata exposes version (#2860) 2020-11-18 14:54:10 +01:00
Github Actions aa7d34dca1 [CI Skip] release/beta 2.7.2-2
skip-checks: true
2020-11-18 12:34:19 +00:00
Jaco Greeff 65b4d5bb43 Update README.md 2020-11-18 13:27:12 +01:00
Github Actions acc1edaddc [CI Skip] release/beta 2.7.2-1
skip-checks: true
2020-11-18 11:57:41 +00:00
Jaco Greeff ba9b9c6fa2 Debump bn.js (#2859) 2020-11-18 12:49:41 +01:00
Github Actions aa4f593d79 [CI Skip] release/beta 2.7.2-0
skip-checks: true
2020-11-17 14:38:42 +00:00
Lovesh Harchandani dd2dde5701 Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
Signed-off-by: lovesh <lovesh.bond@gmail.com>
2020-11-17 15:31:01 +01:00
29 changed files with 377 additions and 349 deletions
+17
View File
@@ -1,5 +1,22 @@
# CHANGELOG
## 2.8.1 Nov 23, 2020
Upgrade priority: Low. Recommended if using Substrate master with new `MultiAddress`.
Contributed:
- Export `derive.chain.getBlock` (Thanks to https://github.com/lovesh)
Changes:
- Expand `MultiAddress` construction with multi type detection
- Rename `GenericLookupSource` to `IndicesLookupSource` (internal use)
- Cleanup list retrievals with `Raw` data results for undecodable entries
- Export actual version via `RegistryMetadata`
- Dedupe bn.js (one version shared between dependencies)
## 2.7.1 Nov 16, 2020
Upgrade priority: Medium. Recommended for users of Polkadot/Kusama and api-contract users.
-16
View File
@@ -28,19 +28,3 @@ The API is split up into a number of internal packages -
Type definitions for interfaces as exposed by Polkadot & Substrate clients -
- [@polkadot/types](packages/types/) Codecs for all Polkadot and Substrate primitives
## development
Contributions are welcome!
To start off, this repo (along with others in the [@polkadot](https://github.com/polkadot-js/) family) uses yarn workspaces to organise the code. As such, after cloning, its dependencies _should_ be installed via `yarn`, not via npm; the latter will result in broken dependencies.
To get started -
1. Clone the repo locally, via `git clone https://github.com/polkadot-js/api <optional local path>`
2. Ensure that you have a recent version of Node.js, for development purposes [Node 10](https://nodejs.org/en/) is recommended.
3. Ensure that you have a recent version of Yarn, for development purposes [Yarn >=1.10.1](https://yarnpkg.com/docs/install) is required.
4. Install the dependencies by running `yarn`
5. Build the everything via `yarn run build`
6. You can also launch the API Docs, via `yarn vuepress dev docs`
7. Access the docs via [http://localhost:8080](http://localhost:8080)
+2 -2
View File
@@ -26,11 +26,11 @@
"@babel/core": "^7.12.3",
"@babel/register": "^7.12.1",
"@babel/runtime": "^7.12.5",
"@polkadot/dev": "^0.60.2",
"@polkadot/dev": "^0.60.3",
"@polkadot/ts": "^0.3.55",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^26.0.15",
"copyfiles": "^2.4.0"
},
"version": "2.7.1"
"version": "2.8.1"
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "2.7.1",
"version": "2.8.1",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"sideEffects": false,
@@ -17,10 +17,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "2.7.1",
"@polkadot/types": "2.7.1",
"@polkadot/util": "^4.1.1",
"bn.js": "^5.1.3",
"@polkadot/api": "2.8.1",
"@polkadot/types": "2.8.1",
"@polkadot/util": "^4.2.1",
"bn.js": "^4.11.9",
"rxjs": "^6.6.3"
}
}
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "2.7.1",
"version": "2.8.1",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"sideEffects": false,
@@ -18,17 +18,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "2.7.1",
"@polkadot/rpc-core": "2.7.1",
"@polkadot/types": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"bn.js": "^5.1.3",
"@polkadot/api": "2.8.1",
"@polkadot/rpc-core": "2.8.1",
"@polkadot/types": "2.8.1",
"@polkadot/util": "^4.2.1",
"@polkadot/util-crypto": "^4.2.1",
"bn.js": "^4.11.9",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1",
"@polkadot/rpc-provider": "2.7.1"
"@polkadot/keyring": "^4.2.1",
"@polkadot/rpc-provider": "2.8.1"
}
}
+4 -4
View File
@@ -17,12 +17,12 @@ import { memo } from '../util';
* <BR>
*
* ```javascript
* const { author, number } = await api.derive.chain.getHeader('0x123...456');
* const { author, block } = await api.derive.chain.getBlock('0x123...456');
*
* console.log(`block #${number} was authored by ${author}`);
* console.log(`block #${block.header.number} was authored by ${author}`);
* ```
*/
export function getHeader (instanceId: string, api: ApiInterfaceRx): (hash: Uint8Array | string) => Observable<SignedBlockExtended | undefined> {
export function getBlock (instanceId: string, api: ApiInterfaceRx): (hash: Uint8Array | string) => Observable<SignedBlockExtended | undefined> {
return memo(instanceId, (hash: Uint8Array | string): Observable<SignedBlockExtended | undefined> =>
combineLatest([
api.rpc.chain.getBlock(hash),
@@ -35,7 +35,7 @@ export function getHeader (instanceId: string, api: ApiInterfaceRx): (hash: Uint
),
catchError((): Observable<undefined> =>
// where rpc.chain.getHeader throws, we will land here - it can happen that
// we supplied an invalid hash. (Due to defaults, storeage will have an
// we supplied an invalid hash. (Due to defaults, storage will have an
// empty value, so only the RPC is affected). So return undefined
of()
)
+1
View File
@@ -5,5 +5,6 @@ export * from './bestNumber';
export * from './bestNumberFinalized';
export * from './bestNumberLag';
export * from './getHeader';
export * from './getBlock';
export * from './subscribeNewBlocks';
export * from './subscribeNewHeads';
+11 -11
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "2.7.1",
"version": "2.8.1",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"sideEffects": false,
@@ -17,16 +17,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api-derive": "2.7.1",
"@polkadot/keyring": "^4.1.1",
"@polkadot/metadata": "2.7.1",
"@polkadot/rpc-core": "2.7.1",
"@polkadot/rpc-provider": "2.7.1",
"@polkadot/types": "2.7.1",
"@polkadot/types-known": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"bn.js": "^5.1.3",
"@polkadot/api-derive": "2.8.1",
"@polkadot/keyring": "^4.2.1",
"@polkadot/metadata": "2.8.1",
"@polkadot/rpc-core": "2.8.1",
"@polkadot/rpc-provider": "2.8.1",
"@polkadot/types": "2.8.1",
"@polkadot/types-known": "2.8.1",
"@polkadot/util": "^4.2.1",
"@polkadot/util-crypto": "^4.2.1",
"bn.js": "^4.11.9",
"eventemitter3": "^4.0.7",
"rxjs": "^6.6.3"
}
+3 -3
View File
@@ -468,10 +468,10 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
private _retrieveMapEntries (entry: StorageEntry, at: Hash | Uint8Array | string | null, arg?: Arg): Observable<[StorageKey, Codec][]> {
const query = this._rpcCore.state.queryStorageAt
? at
? (keyset: StorageKey[]) => this._rpcCore.state.queryStorageAt<Codec[]>(keyset, at)
: (keyset: StorageKey[]) => this._rpcCore.state.queryStorageAt<Codec[]>(keyset)
? (keyset: StorageKey[]) => this._rpcCore.state.queryStorageAt(keyset, at)
: (keyset: StorageKey[]) => this._rpcCore.state.queryStorageAt(keyset)
// this is horrible, but need older support (which now doesn't work with at)
: (keyset: StorageKey[]) => this._rpcCore.state.subscribeStorage<Codec[]>(keyset).pipe(take(1));
: (keyset: StorageKey[]) => this._rpcCore.state.subscribeStorage(keyset).pipe(take(1));
return this._retrieveMapKeys(entry, at, arg).pipe(
switchMap((keys) =>
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "2.7.1",
"version": "2.8.1",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"sideEffects": false,
@@ -16,13 +16,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "2.7.1",
"@polkadot/types-known": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"bn.js": "^5.1.3"
"@polkadot/types": "2.8.1",
"@polkadot/types-known": "2.8.1",
"@polkadot/util": "^4.2.1",
"@polkadot/util-crypto": "^4.2.1",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1"
"@polkadot/keyring": "^4.2.1"
}
}
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "2.7.1",
"version": "2.8.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"sideEffects": false,
@@ -17,14 +17,14 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "2.7.1",
"@polkadot/rpc-provider": "2.7.1",
"@polkadot/types": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/metadata": "2.8.1",
"@polkadot/rpc-provider": "2.8.1",
"@polkadot/types": "2.8.1",
"@polkadot/util": "^4.2.1",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1"
"@polkadot/keyring": "^4.2.1"
}
}
+52 -44
View File
@@ -382,13 +382,7 @@ export class RpcCore implements RpcInterface {
if (rpc.type === 'StorageData') {
const key = params[0] as StorageKey;
try {
return this._formatStorageData(registry, key, result);
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:`, (error as Error).message);
throw error;
}
return this._formatStorageData(registry, key, result);
} else if (rpc.type === 'StorageChangeSet') {
const keys = params[0] as Vec<StorageKey>;
@@ -426,22 +420,32 @@ export class RpcCore implements RpcInterface {
: u8aToU8a(value);
if (meta.modifier.isOptional) {
return new Option(
registry,
createClass(registry, type),
isEmpty
? null
: createTypeUnsafe(registry, type, [input], true)
);
let inner = null;
if (!isEmpty) {
try {
inner = createTypeUnsafe(registry, type, [input], true);
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:`, (error as Error).message);
}
}
return new Option(registry, createClass(registry, type), inner);
}
return createTypeUnsafe(registry, type, [
isEmpty
? meta.fallback
? hexToU8a(meta.fallback.toHex())
: undefined
: input
], true);
try {
return createTypeUnsafe(registry, type, [
isEmpty
? meta.fallback
? hexToU8a(meta.fallback.toHex())
: undefined
: input
], true);
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:`, (error as Error).message);
return registry.createType('Raw', input);
}
}
private _formatStorageSet (registry: Registry, keys: Vec<StorageKey>, changes: [string, string | null][]): Codec[] {
@@ -453,24 +457,18 @@ export class RpcCore implements RpcInterface {
// - Codec - There is a valid value, non-empty
// - null - The storage key is empty
return keys.reduce((results: Codec[], key: StorageKey, index: number): Codec[] => {
try {
results.push(this._formatStorageSetEntry(registry, key, changes, withCache));
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}: entry ${index + 1}/${keys.length}:`, (error as Error).message);
throw error;
}
results.push(this._formatStorageSetEntry(registry, key, changes, withCache, index));
return results;
}, []);
}
private _formatStorageSetEntry (registry: Registry, key: StorageKey, changes: [string, string | null][], witCache: boolean): Codec {
private _formatStorageSetEntry (registry: Registry, key: StorageKey, changes: [string, string | null][], witCache: boolean, entryIndex: number): Codec {
// Fallback to Raw (i.e. just the encoding) if we don't have a specific type
const type = key.outputType || 'Raw';
const hexKey = key.toHex();
const meta = key.meta || EMPTY_META;
const found = changes.find(([key]): boolean => key === hexKey);
const found = changes.find(([key]) => key === hexKey);
// if we don't find the value, this is our fallback
// - in the case of an array of values, fill the hole from the cache
@@ -490,21 +488,31 @@ export class RpcCore implements RpcInterface {
this.#storageCache.set(hexKey, value);
if (meta.modifier.isOptional) {
return new Option(
registry,
createClass(registry, type),
isEmpty
? null
: createTypeUnsafe(registry, type, [input], true)
);
let inner = null;
if (!isEmpty) {
try {
inner = createTypeUnsafe(registry, type, [input], true);
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}: entry ${entryIndex}:`, (error as Error).message);
}
}
return new Option(registry, createClass(registry, type), inner);
}
return createTypeUnsafe(registry, type, [
isEmpty
? meta.fallback
? hexToU8a(meta.fallback.toHex())
: undefined
: input
], true);
try {
return createTypeUnsafe(registry, type, [
isEmpty
? meta.fallback
? hexToU8a(meta.fallback.toHex())
: undefined
: input
], true);
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}: entry ${entryIndex}:`, (error as Error).message);
return registry.createType('Raw', input);
}
}
}
+9 -9
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "2.7.1",
"version": "2.8.1",
"description": "Transport providers for the API",
"main": "index.js",
"sideEffects": false,
@@ -17,17 +17,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"@polkadot/x-fetch": "^4.1.1",
"@polkadot/x-ws": "^4.1.1",
"bn.js": "^5.1.3",
"@polkadot/types": "2.8.1",
"@polkadot/util": "^4.2.1",
"@polkadot/util-crypto": "^4.2.1",
"@polkadot/x-fetch": "^4.2.1",
"@polkadot/x-ws": "^4.2.1",
"bn.js": "^4.11.9",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1",
"@polkadot/metadata": "2.7.1",
"@polkadot/keyring": "^4.2.1",
"@polkadot/metadata": "2.8.1",
"mock-socket": "^9.0.3",
"nock": "^13.0.5"
}
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "2.7.1",
"version": "2.8.1",
"description": "Type generation scripts",
"main": "index.js",
"sideEffects": false,
@@ -26,11 +26,11 @@
"@babel/core": "^7.12.3",
"@babel/register": "^7.12.1",
"@babel/runtime": "^7.12.5",
"@polkadot/api": "2.7.1",
"@polkadot/metadata": "2.7.1",
"@polkadot/rpc-provider": "2.7.1",
"@polkadot/types": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/api": "2.8.1",
"@polkadot/metadata": "2.8.1",
"@polkadot/rpc-provider": "2.8.1",
"@polkadot/types": "2.8.1",
"@polkadot/util": "^4.2.1",
"handlebars": "^4.7.6",
"websocket": "^1.0.32",
"yargs": "^16.1.0"
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "2.7.1",
"version": "2.8.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"sideEffects": false,
@@ -17,9 +17,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "2.7.1",
"@polkadot/util": "^4.1.1",
"bn.js": "^5.1.3"
"@polkadot/types": "2.8.1",
"@polkadot/util": "^4.2.1",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@types/bn.js": "^4.11.6"
@@ -1,10 +1,15 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
// substrate
Address: 'LookupSource',
LookupSource: 'IndicesLookupSource',
AnchorData: {
anchoredBlock: 'u64',
docRoot: 'H256',
+5
View File
@@ -1,6 +1,8 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
@@ -23,6 +25,7 @@ const versioned: OverrideVersionedType[] = [
DispatchError: 'DispatchErrorTo198',
DispatchInfo: 'DispatchInfoTo244',
Keys: 'SessionKeys5',
LookupSource: 'IndicesLookupSource',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
@@ -42,6 +45,7 @@ const versioned: OverrideVersionedType[] = [
CompactAssignments: 'CompactAssignmentsTo257',
DispatchInfo: 'DispatchInfoTo244',
Keys: 'SessionKeys5',
LookupSource: 'IndicesLookupSource',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
@@ -62,6 +66,7 @@ const versioned: OverrideVersionedType[] = [
CompactAssignments: 'CompactAssignmentsTo257',
DispatchInfo: 'DispatchInfoTo244',
Keys: 'SessionKeys5',
LookupSource: 'IndicesLookupSource',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
@@ -1,6 +1,8 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
const versioned: OverrideVersionedType[] = [
@@ -1,6 +1,8 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
+2
View File
@@ -1,6 +1,8 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
// structs need to be in order
+2
View File
@@ -1,6 +1,8 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "2.7.1",
"version": "2.8.1",
"description": "Implementation of the Parity codec",
"main": "index.js",
"sideEffects": false,
@@ -17,16 +17,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "2.7.1",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"@polkadot/metadata": "2.8.1",
"@polkadot/util": "^4.2.1",
"@polkadot/util-crypto": "^4.2.1",
"@types/bn.js": "^4.11.6",
"bn.js": "^5.1.3",
"bn.js": "^4.11.9",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1",
"@polkadot/keyring": "^4.2.1",
"@types/memoizee": "^0.4.5"
}
}
+4 -4
View File
@@ -35,7 +35,7 @@ import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/ty
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
import type { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, GenericAddress, H160, H256, H512, Hash, Header, I32F32, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, OpaqueCall, Origin, OriginCaller, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, TransactionPriority, U32F32, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
import type { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H160, H256, H512, Hash, Header, I32F32, Index, IndicesLookupSource, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, OpaqueCall, Origin, OriginCaller, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, TransactionPriority, U32F32, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
import type { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, ValidatorCount } from '@polkadot/types/interfaces/session';
@@ -283,9 +283,6 @@ declare module '@polkadot/types/types/registry' {
ExtrinsicsWeight: ExtrinsicsWeight;
'Option<ExtrinsicsWeight>': Option<ExtrinsicsWeight>;
'Vec<ExtrinsicsWeight>': Vec<ExtrinsicsWeight>;
GenericAddress: GenericAddress;
'Option<GenericAddress>': Option<GenericAddress>;
'Vec<GenericAddress>': Vec<GenericAddress>;
H160: H160;
'Option<H160>': Option<H160>;
'Vec<H160>': Vec<H160>;
@@ -301,6 +298,9 @@ declare module '@polkadot/types/types/registry' {
Header: Header;
'Option<Header>': Option<Header>;
'Vec<Header>': Vec<Header>;
IndicesLookupSource: IndicesLookupSource;
'Option<IndicesLookupSource>': Option<IndicesLookupSource>;
'Vec<IndicesLookupSource>': Vec<IndicesLookupSource>;
Index: Index;
'Compact<Index>': Compact<Index>;
'Option<Index>': Option<Index>;
@@ -2,12 +2,12 @@
// SPDX-License-Identifier: Apache-2.0
import { TypeRegistry } from '../create';
import { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookuoSource } from '.';
import { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookupSource } from '.';
describe('LookupSource', (): void => {
const registry = new TypeRegistry();
const testDecode = (type: string, input: LookuoSource | AccountId | AccountIndex | number[] | Uint8Array, expected: string): void =>
const testDecode = (type: string, input: LookupSource | AccountId | AccountIndex | number[] | Uint8Array, expected: string): void =>
it(`can decode from ${type}`, (): void => {
const a = registry.createType('Address', input);
+32 -16
View File
@@ -3,10 +3,40 @@
import { Registry } from '../types';
import { isString, u8aConcat } from '@polkadot/util';
import { isBn, isNumber, isString, isU8a } from '@polkadot/util';
import { decodeAddress } from '@polkadot/util-crypto';
import { Enum } from '../codec/Enum';
import { GenericAccountId } from './AccountId';
import { GenericAccountIndex } from './AccountIndex';
function decodeMultiU8a (registry: Registry, value?: unknown): unknown {
if (isU8a(value) && value.length <= 32) {
if (value.length === 32) {
return { id: value };
} else if (value.length === 20) {
return { Address20: value };
} else {
return decodeMultiAny(registry, registry.createType('AccountIndex', value));
}
}
return value;
}
function decodeMultiAny (registry: Registry, value?: unknown): unknown {
if (value instanceof GenericMultiAddress) {
return value;
} else if (value instanceof GenericAccountId) {
return { Id: value };
} else if (value instanceof GenericAccountIndex || isNumber(value) || isBn(value)) {
return { Index: registry.createType('Compact<AccountIndex>', value) };
} else if (isString(value)) {
return decodeMultiU8a(registry, decodeAddress(value.toString()));
}
return decodeMultiU8a(registry, value);
}
export class GenericMultiAddress extends Enum {
constructor (registry: Registry, value?: unknown) {
@@ -18,21 +48,7 @@ export class GenericMultiAddress extends Enum {
Address32: 'H256',
// eslint-disable-next-line sort-keys
Address20: 'H160'
}, GenericMultiAddress._decodeMultiAddress(value as string));
}
private static _decodeMultiAddress (value?: unknown): unknown {
if (isString(value)) {
try {
const u8a = decodeAddress(value.toString());
return u8aConcat(new Uint8Array(u8a.length <= 8 ? 1 : 0), u8a);
} catch (error) {
// ignore, not a valid ss58 address
}
}
return value;
}, decodeMultiAny(registry, value));
}
/**
@@ -29,7 +29,7 @@ export default {
AccountId: 'GenericAccountId',
AccountIdOf: 'AccountId',
AccountIndex: 'GenericAccountIndex',
Address: 'GenericAddress',
Address: 'LookupSource',
AssetId: 'u32',
Balance: 'UInt<128, Balance>',
BalanceOf: 'Balance',
@@ -61,7 +61,6 @@ export default {
normal: 'Weight',
operational: 'Weight'
},
GenericAddress: 'LookupSource',
H160: '[u8; 20; H160]',
H256: '[u8; 32; H256]',
H512: '[u8; 64; H512]',
@@ -73,12 +72,13 @@ export default {
extrinsicsRoot: 'Hash',
digest: 'Digest'
},
IndicesLookupSource: 'GenericLookupSource',
Index: 'u32',
Justification: 'Bytes',
KeyValue: '(StorageKey, StorageData)',
KeyTypeId: 'u32',
LockIdentifier: '[u8; 8]',
LookupSource: 'GenericLookupSource',
LookupSource: 'IndicesLookupSource',
LookupTarget: 'AccountId',
ModuleId: 'LockIdentifier',
MultiAddress: 'GenericMultiAddress',
@@ -17,7 +17,7 @@ export interface AccountIdOf extends AccountId {}
export interface AccountIndex extends GenericAccountIndex {}
/** @name Address */
export interface Address extends GenericAddress {}
export interface Address extends LookupSource {}
/** @name AssetId */
export interface AssetId extends u32 {}
@@ -102,9 +102,6 @@ export interface FixedU128 extends UInt {}
/** @name FixedU64 */
export interface FixedU64 extends UInt {}
/** @name GenericAddress */
export interface GenericAddress extends LookupSource {}
/** @name H160 */
export interface H160 extends U8aFixed {}
@@ -132,6 +129,9 @@ export interface I32F32 extends Int {}
/** @name Index */
export interface Index extends u32 {}
/** @name IndicesLookupSource */
export interface IndicesLookupSource extends GenericLookupSource {}
/** @name Justification */
export interface Justification extends Bytes {}
@@ -145,7 +145,7 @@ export interface KeyValue extends ITuple<[StorageKey, StorageData]> {}
export interface LockIdentifier extends U8aFixed {}
/** @name LookupSource */
export interface LookupSource extends GenericLookupSource {}
export interface LookupSource extends IndicesLookupSource {}
/** @name LookupTarget */
export interface LookupTarget extends AccountId {}
+1
View File
@@ -92,6 +92,7 @@ export interface RegistryMetadataLatest {
export interface RegistryMetadata {
asLatest: RegistryMetadataLatest;
version: number;
}
export interface OverrideVersionedType {
+170 -187
View File
@@ -1717,55 +1717,55 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api": 2.7.1
"@polkadot/types": 2.7.1
"@polkadot/util": ^4.1.1
bn.js: ^5.1.3
"@polkadot/api": 2.8.1
"@polkadot/types": 2.8.1
"@polkadot/util": ^4.2.1
bn.js: ^4.11.9
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/api-derive@2.7.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@2.8.1, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api": 2.7.1
"@polkadot/keyring": ^4.1.1
"@polkadot/rpc-core": 2.7.1
"@polkadot/rpc-provider": 2.7.1
"@polkadot/types": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
bn.js: ^5.1.3
"@polkadot/api": 2.8.1
"@polkadot/keyring": ^4.2.1
"@polkadot/rpc-core": 2.8.1
"@polkadot/rpc-provider": 2.8.1
"@polkadot/types": 2.8.1
"@polkadot/util": ^4.2.1
"@polkadot/util-crypto": ^4.2.1
bn.js: ^4.11.9
memoizee: ^0.4.14
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/api@2.7.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@2.8.1, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api-derive": 2.7.1
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.7.1
"@polkadot/rpc-core": 2.7.1
"@polkadot/rpc-provider": 2.7.1
"@polkadot/types": 2.7.1
"@polkadot/types-known": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
bn.js: ^5.1.3
"@polkadot/api-derive": 2.8.1
"@polkadot/keyring": ^4.2.1
"@polkadot/metadata": 2.8.1
"@polkadot/rpc-core": 2.8.1
"@polkadot/rpc-provider": 2.8.1
"@polkadot/types": 2.8.1
"@polkadot/types-known": 2.8.1
"@polkadot/util": ^4.2.1
"@polkadot/util-crypto": ^4.2.1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.60.2":
version: 0.60.2
resolution: "@polkadot/dev@npm:0.60.2"
"@polkadot/dev@npm:^0.60.3":
version: 0.60.3
resolution: "@polkadot/dev@npm:0.60.3"
dependencies:
"@babel/cli": ^7.12.1
"@babel/core": ^7.12.3
@@ -1788,8 +1788,8 @@ __metadata:
"@babel/register": ^7.12.1
"@babel/runtime": ^7.12.5
"@rushstack/eslint-patch": ^1.0.6
"@typescript-eslint/eslint-plugin": 4.7.0
"@typescript-eslint/parser": 4.7.0
"@typescript-eslint/eslint-plugin": 4.8.1
"@typescript-eslint/parser": 4.8.1
"@vue/component-compiler-utils": ^3.2.0
babel-jest: ^26.6.3
babel-plugin-module-extension-resolver: ^1.0.0-rc.1
@@ -1799,7 +1799,7 @@ __metadata:
chalk: ^4.1.0
coveralls: ^3.1.0
eslint: ^7.13.0
eslint-config-standard: ^16.0.1
eslint-config-standard: ^16.0.2
eslint-import-resolver-node: ^0.3.4
eslint-plugin-header: ^3.1.0
eslint-plugin-import: ^2.22.1
@@ -1808,7 +1808,6 @@ __metadata:
eslint-plugin-react: ^7.21.5
eslint-plugin-react-hooks: ^4.2.0
eslint-plugin-sort-destructure-keys: ^1.3.5
eslint-plugin-standard: ^4.1.0
fs-extra: ^9.0.1
gh-pages: ^3.1.0
gh-release: ^4.0.3
@@ -1828,7 +1827,7 @@ __metadata:
typedoc-plugin-markdown: ^3.0.11
typedoc-plugin-no-inherit: ^1.2.0
typescript: ^4.0.5
yargs: ^16.1.0
yargs: ^16.1.1
bin:
polkadot-ci-ghact-build: scripts/polkadot-ci-ghact-build.cjs
polkadot-ci-ghact-docs: scripts/polkadot-ci-ghact-docs.cjs
@@ -1852,75 +1851,75 @@ __metadata:
polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.cjs
polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.cjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.cjs
checksum: 962e6da07fa561e2b988c7b67cc134e39b51c05bbcf1cb57f9f9185a50602fbc57a4f22cc43fb3a90e33af83d1c46613bf9dfad0166f6fb781186ebf6bed6692
checksum: 9f13fdec4e15d681ae549d492d8ba9d51bfe11f3accdaffaaffe9b1c51d428c62fcbbd7b89b8084c6959d6e831b0effb506cfbee6c654358fb0d9b89bdb9f0ca
languageName: node
linkType: hard
"@polkadot/keyring@npm:^4.1.1":
version: 4.1.1
resolution: "@polkadot/keyring@npm:4.1.1"
"@polkadot/keyring@npm:^4.2.1":
version: 4.2.1
resolution: "@polkadot/keyring@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/util": 4.1.1
"@polkadot/util-crypto": 4.1.1
"@polkadot/util": 4.2.1
"@polkadot/util-crypto": 4.2.1
peerDependencies:
"@polkadot/util": 4.1.1
"@polkadot/util-crypto": 4.1.1
checksum: aa6827232e97b2749de579851ac16050c8ea2d671c1f1119aee2f64a2b9ecba3ca2869bb64a232affa6d04f095441f00231637c66ba5ca7bc2ab06af2fa3aaab
"@polkadot/util": 4.2.1
"@polkadot/util-crypto": 4.2.1
checksum: f5032693555aa41da3f4605a535ae3b02b22c06294e1961b7f3d94752ec2497f2ef26cf7b143087de5a20542f21d6c1b2c37312b50dc9b732df19f26d862b6f7
languageName: node
linkType: hard
"@polkadot/metadata@2.7.1, @polkadot/metadata@workspace:packages/metadata":
"@polkadot/metadata@2.8.1, @polkadot/metadata@workspace:packages/metadata":
version: 0.0.0-use.local
resolution: "@polkadot/metadata@workspace:packages/metadata"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/types": 2.7.1
"@polkadot/types-known": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
bn.js: ^5.1.3
"@polkadot/keyring": ^4.2.1
"@polkadot/types": 2.8.1
"@polkadot/types-known": 2.8.1
"@polkadot/util": ^4.2.1
"@polkadot/util-crypto": ^4.2.1
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/networks@npm:4.1.1":
version: 4.1.1
resolution: "@polkadot/networks@npm:4.1.1"
"@polkadot/networks@npm:4.2.1":
version: 4.2.1
resolution: "@polkadot/networks@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: aef0551eb0ac707100483247b773caa7c4f0c5edd4066d654495c83367f89bb71343f065d4c31ae49e7f9cbe0077b03df003f897a1621c594c73fdef4c5e7067
checksum: b8814436447cf0255b9330cfb9e8647ffa69e9a05be0c43c8e9d17922b0667526639ec543e64f85a82739c33b88d082c194e4237f7c931c3ba61b8be96e19298
languageName: node
linkType: hard
"@polkadot/rpc-core@2.7.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@2.8.1, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.7.1
"@polkadot/rpc-provider": 2.7.1
"@polkadot/types": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/keyring": ^4.2.1
"@polkadot/metadata": 2.8.1
"@polkadot/rpc-provider": 2.8.1
"@polkadot/types": 2.8.1
"@polkadot/util": ^4.2.1
memoizee: ^0.4.14
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@2.7.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@2.8.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.7.1
"@polkadot/types": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
"@polkadot/x-fetch": ^4.1.1
"@polkadot/x-ws": ^4.1.1
bn.js: ^5.1.3
"@polkadot/keyring": ^4.2.1
"@polkadot/metadata": 2.8.1
"@polkadot/types": 2.8.1
"@polkadot/util": ^4.2.1
"@polkadot/util-crypto": ^4.2.1
"@polkadot/x-fetch": ^4.2.1
"@polkadot/x-ws": ^4.2.1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
mock-socket: ^9.0.3
nock: ^13.0.5
@@ -1943,11 +1942,11 @@ __metadata:
"@babel/core": ^7.12.3
"@babel/register": ^7.12.1
"@babel/runtime": ^7.12.5
"@polkadot/api": 2.7.1
"@polkadot/metadata": 2.7.1
"@polkadot/rpc-provider": 2.7.1
"@polkadot/types": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/api": 2.8.1
"@polkadot/metadata": 2.8.1
"@polkadot/rpc-provider": 2.8.1
"@polkadot/types": 2.8.1
"@polkadot/util": ^4.2.1
"@types/websocket": ^1.0.1
"@types/yargs": ^15.0.9
handlebars: ^4.7.6
@@ -1962,47 +1961,47 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-known@2.7.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@2.8.1, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/types": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/types": 2.8.1
"@polkadot/util": ^4.2.1
"@types/bn.js": ^4.11.6
bn.js: ^5.1.3
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/types@2.7.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@2.8.1, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.7.1
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
"@polkadot/keyring": ^4.2.1
"@polkadot/metadata": 2.8.1
"@polkadot/util": ^4.2.1
"@polkadot/util-crypto": ^4.2.1
"@types/bn.js": ^4.11.6
"@types/memoizee": ^0.4.5
bn.js: ^5.1.3
bn.js: ^4.11.9
memoizee: ^0.4.14
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:4.1.1, @polkadot/util-crypto@npm:^4.1.1":
version: 4.1.1
resolution: "@polkadot/util-crypto@npm:4.1.1"
"@polkadot/util-crypto@npm:4.2.1, @polkadot/util-crypto@npm:^4.2.1":
version: 4.2.1
resolution: "@polkadot/util-crypto@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/networks": 4.1.1
"@polkadot/util": 4.1.1
"@polkadot/networks": 4.2.1
"@polkadot/util": 4.2.1
"@polkadot/wasm-crypto": ^2.0.1
"@polkadot/x-randomvalues": 4.1.1
"@polkadot/x-randomvalues": 4.2.1
base-x: ^3.0.8
blakejs: ^1.1.0
bn.js: ^5.1.3
bn.js: ^4.11.9
create-hash: ^1.2.0
elliptic: ^6.5.3
hash.js: ^1.1.7
@@ -2011,23 +2010,23 @@ __metadata:
tweetnacl: ^1.0.3
xxhashjs: ^0.2.2
peerDependencies:
"@polkadot/util": 4.1.1
checksum: a62b7498f7bed133eab96f9c888478ed1600040f1ed07468e814a9d9c536e6c5b175be6d1f914cae6212e0aa0d3a72115babc4f679022fdc85b998bb44fb706a
"@polkadot/util": 4.2.1
checksum: 7d810ad5165c273247c6365378e3646e17706f3db5dd1a49a5d00751e7114f5878c9400fc03b49b4583dde1f6c5763b2f58628e1dea8c8b7fc11b873ea297590
languageName: node
linkType: hard
"@polkadot/util@npm:4.1.1, @polkadot/util@npm:^4.1.1":
version: 4.1.1
resolution: "@polkadot/util@npm:4.1.1"
"@polkadot/util@npm:4.2.1, @polkadot/util@npm:^4.2.1":
version: 4.2.1
resolution: "@polkadot/util@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/x-textdecoder": 4.1.1
"@polkadot/x-textencoder": 4.1.1
"@polkadot/x-textdecoder": 4.2.1
"@polkadot/x-textencoder": 4.2.1
"@types/bn.js": ^4.11.6
bn.js: ^5.1.3
bn.js: ^4.11.9
camelcase: ^5.3.1
ip-regex: ^4.2.0
checksum: f8fbd35335b55baafd124b780a2a40727d5715236b348167baf2346113b589811c5ca9ce5f109411a8b9b8aec72a56298915cfce61a6a15b2669aaffff234b8e
checksum: 4a89ffcc3b1ba4cede84a7cc66dea81e87d003572d87a9f7eafbc62e1fd62cc8fa19b68ecd5ad9806adcf5fce5d079270451bf24304191afd4a8d2d331f5e22f
languageName: node
linkType: hard
@@ -2041,52 +2040,52 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^4.1.1":
version: 4.1.1
resolution: "@polkadot/x-fetch@npm:4.1.1"
"@polkadot/x-fetch@npm:^4.2.1":
version: 4.2.1
resolution: "@polkadot/x-fetch@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
"@types/node-fetch": ^2.5.7
node-fetch: ^2.6.1
checksum: 8ce24ad3415991da3e884cd1ed0ba33e15dcbd498efd8d503153845f8037964ed7a45019121e4e06eb2c1b12955d336bfd146b7df665bf9b239d3fcb1a577eab
checksum: c9ea564687e93783d15143bde47882e6ee081f6ce53251199e0a4aca629d178dbcf85e8fb313e15364f97e562a2628bbd3d4dd63bf0de6074be70959ea89cc14
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:4.1.1":
version: 4.1.1
resolution: "@polkadot/x-randomvalues@npm:4.1.1"
"@polkadot/x-randomvalues@npm:4.2.1":
version: 4.2.1
resolution: "@polkadot/x-randomvalues@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: 5c73ee059bffd41f9ff6448f93421b758e860da93976beb776cce9dd3f560fbaae23d17236b78b69015a1a4fe67e494bf9d2f026bd62daf4cea413b62d0cbd2b
checksum: 167e41a36119f5aa0cbce98853cfa2d6c0f1272efa56f0b52cb04598af1c42d3f66b6410e48425d5ab928def314445766600a238c9bba605d784d74b471ab7f2
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:4.1.1":
version: 4.1.1
resolution: "@polkadot/x-textdecoder@npm:4.1.1"
"@polkadot/x-textdecoder@npm:4.2.1":
version: 4.2.1
resolution: "@polkadot/x-textdecoder@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: b27727d70915506bf2ea428efd173990c9004480e8d59be89fa58064d1c5d954688e7595c7fe3e888fded1228af9621cda62a488bfeb1901e9802ae85cedd3de
checksum: eb2cf5b21f2540e9e332954d4b2ac2454114cca5c6a3d564a25a5f6bd91ed68bd558cc1bba9bac600e223b97076b7b92a37ba86f073b73dd0f84ced0a8da812d
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:4.1.1":
version: 4.1.1
resolution: "@polkadot/x-textencoder@npm:4.1.1"
"@polkadot/x-textencoder@npm:4.2.1":
version: 4.2.1
resolution: "@polkadot/x-textencoder@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: 242a517604f322bae5d43dc68023fb6265493c9f4c9fae169dc73063a555fb6fe5f8f38c5b965f07647c9d896717897258f6290ce9089ab7da4fdb7ae359289b
checksum: 0f241f2194162d4724ea7b542ebd3ff8da64f6b8138571929079c950dfaa16dbf49c6b91358d287836197ea306f428c9381a30c14dd75a93afaef0120703e9a5
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^4.1.1":
version: 4.1.1
resolution: "@polkadot/x-ws@npm:4.1.1"
"@polkadot/x-ws@npm:^4.2.1":
version: 4.2.1
resolution: "@polkadot/x-ws@npm:4.2.1"
dependencies:
"@babel/runtime": ^7.12.5
"@types/websocket": ^1.0.1
websocket: ^1.0.32
checksum: 684782fcfdd9f0630ca8878e8cbff54329f791ad5d719f025bcca366006d6e9dc4cd6401c102af5e0c53086f06e1b2297122fdddb9659299d2ac785667145351
checksum: af1b34642eaceb7acae5fd55b84f8bbfab240a6beb49ed421bb384160753063f894f5e3391358402910d51c167578ee0aedc260d4529732a694eced3a15e0c63
languageName: node
linkType: hard
@@ -2360,12 +2359,12 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/eslint-plugin@npm:4.7.0"
"@typescript-eslint/eslint-plugin@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/eslint-plugin@npm:4.8.1"
dependencies:
"@typescript-eslint/experimental-utils": 4.7.0
"@typescript-eslint/scope-manager": 4.7.0
"@typescript-eslint/experimental-utils": 4.8.1
"@typescript-eslint/scope-manager": 4.8.1
debug: ^4.1.1
functional-red-black-tree: ^1.0.1
regexpp: ^3.0.0
@@ -2377,66 +2376,66 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 5be169b674064e1d45ebd180fb17794b8f3942e7fe8ea4b6b5dffe78cf27c0d342810a4c3a25d1e2c960a40482940011df98caac1a0efcf15d798c3fdb5d5c59
checksum: d3ab0d7e184ecbb55a0c4404ebd906f4988f6df87447641229938048160963add34f257f0b012ee2ed9a7c0c4b1e3e6377cf9e0fe229eba33b5470883141d5eb
languageName: node
linkType: hard
"@typescript-eslint/experimental-utils@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/experimental-utils@npm:4.7.0"
"@typescript-eslint/experimental-utils@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/experimental-utils@npm:4.8.1"
dependencies:
"@types/json-schema": ^7.0.3
"@typescript-eslint/scope-manager": 4.7.0
"@typescript-eslint/types": 4.7.0
"@typescript-eslint/typescript-estree": 4.7.0
"@typescript-eslint/scope-manager": 4.8.1
"@typescript-eslint/types": 4.8.1
"@typescript-eslint/typescript-estree": 4.8.1
eslint-scope: ^5.0.0
eslint-utils: ^2.0.0
peerDependencies:
eslint: "*"
checksum: a8526c3daffa25f19c8c1278fddeed6be68da13a91f7e25c804756bd3653f2ec0225c9fa22a73855d8b8ea69ae1c9538de860a953f753cead2da519df832a966
checksum: ddebd9ab65b775d3ce11fd1f9bbd76e11e0a545ef64e31b0eac6a0fccab337e86b946c60ff6ee0df60ea0aa9f315b10ac824a054ba49614ddef78f476c64fdd5
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/parser@npm:4.7.0"
"@typescript-eslint/parser@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/parser@npm:4.8.1"
dependencies:
"@typescript-eslint/scope-manager": 4.7.0
"@typescript-eslint/types": 4.7.0
"@typescript-eslint/typescript-estree": 4.7.0
"@typescript-eslint/scope-manager": 4.8.1
"@typescript-eslint/types": 4.8.1
"@typescript-eslint/typescript-estree": 4.8.1
debug: ^4.1.1
peerDependencies:
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 36f5851cd55d84064faa424147a0c0846f78dd992f1e2d72272f3e21a18f6aba0e693f67e8533f7f2da3b56db1761d9cf7718b6bf7e7539ed3fb8877c16ea95b
checksum: c3a61efc48e79e6fdcc9686fb6011a7f462ff213741689e58a0c5e303282c745e982c9d699baea397a4c81eb11493c43b816d1299f1dd55854e7dfa3f870b949
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/scope-manager@npm:4.7.0"
"@typescript-eslint/scope-manager@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/scope-manager@npm:4.8.1"
dependencies:
"@typescript-eslint/types": 4.7.0
"@typescript-eslint/visitor-keys": 4.7.0
checksum: 9dd5f65be954692cc1fb6de2550a1ba3f4a7db7a57aad7b81fceb10ac4c334e2102a62b7b42153a95178997bcf739cba31cd24ea4ee94ee7b54c34ab8e35986d
"@typescript-eslint/types": 4.8.1
"@typescript-eslint/visitor-keys": 4.8.1
checksum: 40d9fff9178ae94af407d194e022e2a3f8b2e683779fcfd33c0f10de8a111d70f8c7c85bd813250f1fe6fbaa8bad2e6d6039189e3138a3d3610f33df28a4db2f
languageName: node
linkType: hard
"@typescript-eslint/types@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/types@npm:4.7.0"
checksum: 83a14e2d115036d5049629f25dfd45677a0bef2b14d982b8f2840def99f620333a2f11e31d2f95496d3b1f4d0a6157926704ee115bd12055c7236b20eb8749b3
"@typescript-eslint/types@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/types@npm:4.8.1"
checksum: ccb647f35828aaa7991bde8a46c40c7ab48fdb1cc6ad6837a5e0f234dbbbd256babd23d83f0516ca797bd0060ca0950e4a5fd9104242ba2a83f74d06cfce59c5
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/typescript-estree@npm:4.7.0"
"@typescript-eslint/typescript-estree@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/typescript-estree@npm:4.8.1"
dependencies:
"@typescript-eslint/types": 4.7.0
"@typescript-eslint/visitor-keys": 4.7.0
"@typescript-eslint/types": 4.8.1
"@typescript-eslint/visitor-keys": 4.8.1
debug: ^4.1.1
globby: ^11.0.1
is-glob: ^4.0.1
@@ -2446,7 +2445,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: da0564b8dffc936f3686179f07ab5d1ae9c3a90292a07e4481056d1c9547f80d5c7207741828ea41ac41f7e75557a27dbebb62dae15b80cedbeb49db89ad2ccf
checksum: c49c39ea1368b95b00c40ec903d5dfe1316b58f024b023e317f5583d4c068290f989d698198b63464c5b6125d4a0ddf80e9e4c800b2c3bcfa89206db29079448
languageName: node
linkType: hard
@@ -2468,13 +2467,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:4.7.0":
version: 4.7.0
resolution: "@typescript-eslint/visitor-keys@npm:4.7.0"
"@typescript-eslint/visitor-keys@npm:4.8.1":
version: 4.8.1
resolution: "@typescript-eslint/visitor-keys@npm:4.8.1"
dependencies:
"@typescript-eslint/types": 4.7.0
"@typescript-eslint/types": 4.8.1
eslint-visitor-keys: ^2.0.0
checksum: 6783a60258962dc8d05f8242d121fc9b6e52805b7505917ef406ae3b0807ce004933bbf1ff56de90682b7d786a856e1fd3287e43f0468a8d7780801f34a3a345
checksum: 318bfa2a4645fa52d1826de2c7b5c7ac49f4df2fcbe73dbbc7ed6d9d091cbb253ce4762919606ea717744d6b6978cfe966963786eb16877b70b87ad6eadbf7e0
languageName: node
linkType: hard
@@ -3078,20 +3077,13 @@ __metadata:
languageName: node
linkType: hard
"bn.js@npm:^4.4.0":
"bn.js@npm:^4.11.9, bn.js@npm:^4.4.0":
version: 4.11.9
resolution: "bn.js@npm:4.11.9"
checksum: 31630d3560b28931010980886a0f657b37ce818ba237867cd838e89a1a0b71044fb4977aa56376616997b372bbb3f55d3bb25e5378c48c1d24a47bfb4235b60e
languageName: node
linkType: hard
"bn.js@npm:^5.1.3":
version: 5.1.3
resolution: "bn.js@npm:5.1.3"
checksum: 991c1fefb03bd69315297d454b379d5a5dd4834ab97db3ec985714f00ff7d3cc19642e1ac6bdf0d9f04946cc9f1ad26a5b497b7f4e7fa1230caf68af46fbefe6
languageName: node
linkType: hard
"boxen@npm:^4.2.0":
version: 4.2.0
resolution: "boxen@npm:4.2.0"
@@ -4444,15 +4436,15 @@ __metadata:
languageName: node
linkType: hard
"eslint-config-standard@npm:^16.0.1":
version: 16.0.1
resolution: "eslint-config-standard@npm:16.0.1"
"eslint-config-standard@npm:^16.0.2":
version: 16.0.2
resolution: "eslint-config-standard@npm:16.0.2"
peerDependencies:
eslint: ^7.12.1
eslint-plugin-import: ^2.22.1
eslint-plugin-node: ^11.1.0
eslint-plugin-promise: ^4.2.1
checksum: 496bd25045dd8cfba1d34d9b1d1cdd34a3243eebf924b147e9cf51661342a77a0af03582dd1fd4968101700f61d55a5437b14a12a90ef9b4c5d759065cc39449
checksum: 9db750eab1fb190deed50cd1b52df94f517142b6bc73edc38d22dc1ccb28ee628d969028017536d65301fbd15daf1487d7b7420f7c2689477f73bb213f6a25fc
languageName: node
linkType: hard
@@ -4584,15 +4576,6 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-standard@npm:^4.1.0":
version: 4.1.0
resolution: "eslint-plugin-standard@npm:4.1.0"
peerDependencies:
eslint: ">=5.0.0"
checksum: 4cafe7ac512ffb15bf1020e2ede3fd59cfbef9601b7cbf05e155eca9f10c2eaeb96932effb477eb57fca4fa7b3b2a3469e165ede73a888036ffa5cf6c83a5af2
languageName: node
linkType: hard
"eslint-scope@npm:^5.0.0, eslint-scope@npm:^5.1.1":
version: 5.1.1
resolution: "eslint-scope@npm:5.1.1"
@@ -9286,7 +9269,7 @@ fsevents@^1.2.7:
"@babel/core": ^7.12.3
"@babel/register": ^7.12.1
"@babel/runtime": ^7.12.5
"@polkadot/dev": ^0.60.2
"@polkadot/dev": ^0.60.3
"@polkadot/ts": ^0.3.55
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^26.0.15
@@ -11029,7 +11012,7 @@ fsevents@^1.2.7:
languageName: node
linkType: hard
"y18n@npm:^5.0.2":
"y18n@npm:^5.0.5":
version: 5.0.5
resolution: "y18n@npm:5.0.5"
checksum: a7d41b0cccca1c98ebab270a944df48eb3b5352d3be0affb8afc8369823f6aa97a5fbead2c5b35e59a5650cb786b2b37627b45be5ff31f02a80dd3b881aceb17
@@ -11093,17 +11076,17 @@ fsevents@^1.2.7:
languageName: node
linkType: hard
"yargs@npm:^16.0.3, yargs@npm:^16.1.0":
version: 16.1.0
resolution: "yargs@npm:16.1.0"
"yargs@npm:^16.0.3, yargs@npm:^16.1.0, yargs@npm:^16.1.1":
version: 16.1.1
resolution: "yargs@npm:16.1.1"
dependencies:
cliui: ^7.0.2
escalade: ^3.1.1
get-caller-file: ^2.0.5
require-directory: ^2.1.1
string-width: ^4.2.0
y18n: ^5.0.2
y18n: ^5.0.5
yargs-parser: ^20.2.2
checksum: 19e94e62eb653f8310aa4ed6eab797b1756fea90cdacb38dec45afdd21b8607bf38723ee0fae0b967ca3886ad58b8430eb48b716958231f2f1b950c1c7f11034
checksum: f88462770b6d65107b7295bdd68c38bc3cba9ab0362df476f44c5f6770ee2f39f48bca9813e8a9dc792a15f93e051a7e37346c0f66cf0ec35c63869963c43e0c
languageName: node
linkType: hard