Compare commits

...
33 Commits
Author SHA1 Message Date
Github Actions 1b9d3bf38e [CI Skip] release/stable 3.1.1
skip-checks: true
2020-12-20 15:51:02 +00:00
Jaco Greeff b8a0f39da4 3.1 (#2969) 2020-12-20 16:44:07 +01:00
Github Actions e4e20f8a88 [CI Skip] release/beta 3.0.2-14
skip-checks: true
2020-12-20 11:18:17 +00:00
Jaco Greeff 131729e438 Adjust bountyBase for keys (#2968) 2020-12-20 12:08:56 +01:00
Github Actions 4672439bce [CI Skip] release/beta 3.0.2-13
skip-checks: true
2020-12-20 09:45:36 +00:00
Jaco Greeff 0b11fc98b9 Update to latest Substrate metadata (#2967)
* Update to latest Substrate metadata

* Update bounties derive

* Cleanups

* Update bounty location
2020-12-20 10:36:38 +01:00
Github Actions ece0a4b19a [CI Skip] release/beta 3.0.2-12
skip-checks: true
2020-12-19 15:33:16 +00:00
Jaco Greeff 1dac7e3f1b Bump util (#2966)
* Bump util

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2020-12-19 16:24:17 +01:00
Github Actions 3e1c93d4a8 [CI Skip] release/beta 3.0.2-11
skip-checks: true
2020-12-19 10:57:24 +00:00
Jaco Greeff 19e9af02d8 Bump deps 2020-12-19 11:47:32 +01:00
Github Actions 2200cc2fab [CI Skip] release/beta 3.0.2-10
skip-checks: true
2020-12-18 15:34:09 +00:00
Jaco Greeff 33990b6d02 Update types for parachains (#2964)
* Update types for parachains

* alias VecDeque
2020-12-18 16:25:53 +01:00
Github Actions 333313fd6a [CI Skip] release/beta 3.0.2-9
skip-checks: true
2020-12-18 10:42:33 +00:00
Jaco Greeff 33fd09c053 Bump dev 2020-12-18 11:33:28 +01:00
Github Actions 7dadac7344 [CI Skip] release/beta 3.0.2-8
skip-checks: true
2020-12-17 13:05:48 +00:00
Jaco Greeff 340554a659 Mark detectPackage as sideEffect 2020-12-17 13:57:48 +01:00
Github Actions 236ad16406 [CI Skip] release/beta 3.0.2-7
skip-checks: true
2020-12-17 11:57:14 +00:00
Jaco Greeff aae4671db5 Bump common, detectPackage with callback 2020-12-17 12:49:05 +01:00
Github Actions d0f9eb7d03 [CI Skip] release/beta 3.0.2-6
skip-checks: true
2020-12-16 14:53:01 +00:00
Jaco Greeff d6106b3253 Allow detectPackage with import.meta.url (#2962)
* Allow detectPackage with import.meta.url

* Fix detectPackage import

* header naming
2020-12-16 15:46:02 +01:00
Github Actions 9740c282d8 [CI Skip] release/beta 3.0.2-5
skip-checks: true
2020-12-16 14:01:09 +00:00
Jaco Greeff f65b5c77ec RxJs esm for non-node (#2961) 2020-12-16 14:54:16 +01:00
Github Actions 0f920ee77d [CI Skip] release/beta 3.0.2-4
skip-checks: true
2020-12-16 12:19:27 +00:00
DavidandJaco Greeff 62d1415d1b Don't log full error (#2952)
* Don't log full error

In `txwrapper` we can't always know if a payload is a signing payload or a signed tx so we first try one and then the other. When the former fails users get a scary-looking error. If upstream logs the error there's little we can do about it lest we [monkey patch `console.error`](https://github.com/paritytech/txwrapper-core/pull/22/files#diff-ea2d1c5845dd0e2fb9814e98a3464c2c63a43922983391e98fe9c20c328e979cR55) which is nasty af.

Hence this PR that removes the log here so that downstream can choose what to do with the error message.

* Add UnsafeOptions to let callers decide if they want errors logged or not

* Update packages/api-contract/src/util.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/rpc-core/src/index.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/rpc-core/src/index.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/types/src/create/createType.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-16 13:12:50 +01:00
Github Actions f8792e09c9 [CI Skip] release/beta 3.0.2-3
skip-checks: true
2020-12-16 11:42:45 +00:00
Jaco Greeff 8d4b03d066 Thin rxjs wrapper for esm (#2960)
* Thin rxjs wrapper for esm

* Comprehensive exports
2020-12-16 12:35:44 +01:00
Github Actions 5d3c728cf0 [CI Skip] release/beta 3.0.2-2
skip-checks: true
2020-12-15 22:40:49 +00:00
Ian HeandIan He 04340de6ae Http provider support multi (#2950)
* use queryStorageAt for multi storage queries

* fix lint

* e2e tests

* skip lints for api.spec.ts

* remove e2e test from PR

* do not decorate multi() if can not supported

* empty line

* update

Co-authored-by: Ian He <ian.he@centrality.ai>
2020-12-15 23:32:45 +01:00
Github Actions d709a5b3be [CI Skip] release/beta 3.0.2-1
skip-checks: true
2020-12-15 14:00:58 +00:00
Jaco Greeff 1d3dfc77a3 Use package-info (name/version only) for detectPackage (#2955)
* Use package-info (name/version only) for detectPackage

* Fixed @polkadot/dev?
2020-12-15 14:52:27 +01:00
Antoine EstienneandJaco Greeff a72d33ad24 Add missing parachain types (#2954)
* adde dmissing types

* replaced id with u32

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* camelCase

* lint

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-15 14:51:55 +01:00
Github Actions e4948ef579 [CI Skip] release/beta 3.0.2-0
skip-checks: true
2020-12-14 15:53:52 +00:00
Jaco Greeff f9812585b8 Remove core single-type create duplication (#2888)
* Remove coe single-type create duplication

* Re-add entry index
2020-12-14 16:45:30 +01:00
58 changed files with 2802 additions and 1352 deletions
+22
View File
@@ -1,5 +1,27 @@
# CHANGELOG
## 3.1.1 Dec 20, 2020
Upgrade priority: Low. Recommended for users of parachains.
Contributed:
- Additional parachain types (Thanks to https://github.com/joelamouche)
- Support for multi queries with `HttpProvider` (Thanks to https://github.com/ianhe8x)
- Configurable error logging with `createTypeUnsafe` (Thanks to https://github.com/dvdplm)
Changes:
- Adjust core type creation, removing storage duplication
- Update parachain types to support Rococo v1
- Adjust bounties derive to cater for new Substrate namespaces (& move to bounties)
- Mark `detectPackage` as known side-effect
- Add `detectPackage` to `@polkadot/metadata` (a number of requests on this)
- Adjust x-rxjs wrapper to expose all methods, incl. Node.js esm fixes
- Update to latest Substrate static metadata
- Update `@polkadot/util` to 5.1.1
## 3.0.1 Dec 14, 2020
Upgrade priority: Low. Recommended for the next Kusama/Polkadot upgrades due to additional types and those following chains following Substrate master closely.
+2 -2
View File
@@ -28,11 +28,11 @@
"@babel/core": "^7.12.10",
"@babel/register": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@polkadot/dev": "^0.61.2",
"@polkadot/dev": "^0.61.13",
"@polkadot/ts": "^0.3.58",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^26.0.19",
"copyfiles": "^2.4.1"
},
"version": "3.0.1"
"version": "3.1.1"
}
+6 -5
View File
@@ -1,8 +1,9 @@
{
"name": "@polkadot/api-contract",
"version": "3.0.1",
"version": "3.1.1",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"module": "index.mjs",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -13,10 +14,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "3.0.1",
"@polkadot/types": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/x-rxjs": "3.0.1",
"@polkadot/api": "3.1.1",
"@polkadot/types": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/x-rxjs": "3.1.1",
"bn.js": "^4.11.9"
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ type ContractEvents = 'CodeStored' | 'ContractExecution' | 'Instantiated';
type TOptions = BlueprintOptions | ContractOptions;
export function formatData (registry: Registry, data: Raw, { type }: TypeDef): Codec {
return createTypeUnsafe(registry, type, [data], true);
return createTypeUnsafe(registry, type, [data], { isPedantic: true });
}
export function applyOnEvent <T> (result: SubmittableResult, type: ContractEvents, fn: (records: EventRecord[]) => T): T | undefined {
+10 -9
View File
@@ -1,8 +1,9 @@
{
"name": "@polkadot/api-derive",
"version": "3.0.1",
"version": "3.1.1",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"module": "index.mjs",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -13,16 +14,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "3.0.1",
"@polkadot/rpc-core": "3.0.1",
"@polkadot/types": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/util-crypto": "^5.0.1",
"@polkadot/x-rxjs": "3.0.1",
"@polkadot/api": "3.1.1",
"@polkadot/rpc-core": "3.1.1",
"@polkadot/types": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/util-crypto": "^5.1.1",
"@polkadot/x-rxjs": "3.1.1",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^5.0.1",
"@polkadot/rpc-provider": "3.0.1"
"@polkadot/keyring": "^5.1.1",
"@polkadot/rpc-provider": "3.1.1"
}
}
@@ -1,4 +1,4 @@
// Copyright 2017-2020 @polkadot/api authors & contributors
// Copyright 2017-2020 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiInterfaceRx } from '@polkadot/api/types';
@@ -6,12 +6,12 @@ import type { Bytes, Option, StorageKey } from '@polkadot/types';
import type { Bounty, BountyIndex } from '@polkadot/types/interfaces';
import type { Codec, InterfaceTypes } from '@polkadot/types/types';
import { bounties } from '@polkadot/api-derive/treasury/bounties';
import { of } from '@polkadot/x-rxjs';
import { BountyFactory } from '../../test/bountyFactory';
import { BytesFactory } from '../../test/bytesFactory';
import { createApiWithAugmentations } from '../../test/helpers';
import { bounties } from '.';
const DEFAULT_PROPOSER = '5C4hrfjw9DjXZTzV3MwzrrAr9P1MJhSrvWGWqi1eSuyUpnhM';
@@ -0,0 +1,47 @@
// Copyright 2017-2020 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { DeriveBounties } from '@polkadot/api-derive/types';
import type { Bytes, Option } from '@polkadot/types';
import type { Bounty, BountyIndex } from '@polkadot/types/interfaces';
import type { Observable } from '@polkadot/x-rxjs';
import { memo } from '@polkadot/api-derive/util';
import { combineLatest } from '@polkadot/x-rxjs';
import { map, switchMap } from '@polkadot/x-rxjs/operators';
type Result = [Option<Bounty>[], Option<Bytes>[]];
function parseResult ([maybeBounties, maybeDescriptions]: Result): DeriveBounties {
const bounties: DeriveBounties = [];
maybeBounties.forEach((bounty, index) => {
if (bounty.isSome) {
bounties.push({ bounty: bounty.unwrap(), description: maybeDescriptions[index].unwrapOrDefault().toUtf8() });
}
});
return bounties;
}
export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveBounties> {
const bountyBase = api.query.bounties
? api.query.bounties
: api.query.treasury;
return memo(instanceId, (): Observable<DeriveBounties> =>
bountyBase.bountyCount<BountyIndex>().pipe(
switchMap(() => bountyBase.bounties.keys()),
switchMap((keys): Observable<Result> => {
const ids = keys.map(({ args: [id] }) => id);
return combineLatest([
bountyBase.bounties.multi<Option<Bounty>>(ids),
bountyBase.bountyDescriptions.multi<Option<Bytes>>(ids)
]);
}),
map(parseResult)
)
);
}
@@ -0,0 +1,4 @@
// Copyright 2017-2020 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './bounties';
+2 -1
View File
@@ -7,6 +7,7 @@ import type { Observable } from '@polkadot/x-rxjs';
import * as accounts from './accounts';
import * as balances from './balances';
import * as bounties from './bounties';
import * as chain from './chain';
import * as contracts from './contracts';
import * as council from './council';
@@ -23,7 +24,7 @@ import * as tx from './tx';
export * from './type';
export const derive = { accounts, balances, chain, contracts, council, democracy, elections, imOnline, parachains, session, society, staking, technicalCommittee, treasury, tx };
export const derive = { accounts, balances, bounties, chain, contracts, council, democracy, elections, imOnline, parachains, session, society, staking, technicalCommittee, treasury, tx };
type DeriveSection<Section> = {
[Method in keyof Section]: Section[Method] extends AnyFunction
@@ -1,41 +0,0 @@
// Copyright 2017-2020 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiInterfaceRx } from '@polkadot/api/types';
import type { DeriveBounties } from '@polkadot/api-derive/types';
import type { Bytes, Option, StorageKey } from '@polkadot/types';
import type { Bounty } from '@polkadot/types/interfaces';
import type { Codec } from '@polkadot/types/types';
import type { Observable } from '@polkadot/x-rxjs';
import { memo } from '@polkadot/api-derive/util';
import { combineLatest } from '@polkadot/x-rxjs';
import { map, switchMap } from '@polkadot/x-rxjs/operators';
function parseResult ([maybeBounties, maybeDescriptions]: [Option<Bounty>[], Option<Bytes>[]]): DeriveBounties {
const bounties: DeriveBounties = [];
maybeBounties.forEach((bounty, index) => {
if (bounty.isSome) {
bounties.push({ bounty: bounty.unwrap(), description: maybeDescriptions[index].unwrapOrDefault().toUtf8() });
}
});
return bounties;
}
function extractIds (keys: StorageKey[]): Codec[] {
return keys.map(({ args: [id] }: StorageKey) => id);
}
export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveBounties> {
return memo(instanceId, (): Observable<DeriveBounties> => api.query.treasury.bountyCount().pipe(
switchMap(() => api.query.treasury.bounties.keys()),
switchMap((keys: StorageKey[]) => {
return combineLatest([
api.query.treasury.bounties.multi<Option<Bounty>>(extractIds(keys)),
api.query.treasury.bountyDescriptions.multi<Option<Bytes>>(extractIds(keys))
]
).pipe(map(parseResult));
})));
}
@@ -2,4 +2,3 @@
// SPDX-License-Identifier: Apache-2.0
export * from './proposals';
export * from './bounties';
+8 -4
View File
@@ -15,11 +15,14 @@ export class BountyFactory {
this.#registry = this.#api.registry;
}
public storageKey = (index: number): StorageKey => new StorageKey(this.#registry, this.#api.query.treasury.bounties.key(this.bountyIndex(index)));
public storageKey = (index: number): StorageKey =>
new StorageKey(this.#registry, this.#api.query.bounties.bounties.key(this.bountyIndex(index)));
public bountyIndex = (index: number): BountyIndex => this.#registry.createType('BountyIndex', index);
public bountyIndex = (index: number): BountyIndex =>
this.#registry.createType('BountyIndex', index);
public defaultBounty = (): Bounty => this.#registry.createType('Bounty');
public defaultBounty = (): Bounty =>
this.#registry.createType('Bounty');
public optionOf = <T extends Codec>(value: T): Option<T> => {
const typeName = this.#registry.getClassName(value.constructor as Constructor<T>);
@@ -27,5 +30,6 @@ export class BountyFactory {
return new Option<T>(this.#registry, typeName as keyof InterfaceTypes, value);
};
public emptyOption = <T extends Codec>(typeName: keyof InterfaceTypes): Option<T> => new Option<T>(this.#registry, typeName);
public emptyOption = <T extends Codec>(typeName: keyof InterfaceTypes): Option<T> =>
new Option<T>(this.#registry, typeName);
}
+16 -12
View File
@@ -1,9 +1,13 @@
{
"name": "@polkadot/api",
"version": "3.0.1",
"version": "3.1.1",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"sideEffects": false,
"module": "index.mjs",
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"contributors": [],
@@ -13,16 +17,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api-derive": "3.0.1",
"@polkadot/keyring": "^5.0.1",
"@polkadot/metadata": "3.0.1",
"@polkadot/rpc-core": "3.0.1",
"@polkadot/rpc-provider": "3.0.1",
"@polkadot/types": "3.0.1",
"@polkadot/types-known": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/util-crypto": "^5.0.1",
"@polkadot/x-rxjs": "3.0.1",
"@polkadot/api-derive": "3.1.1",
"@polkadot/keyring": "^5.1.1",
"@polkadot/metadata": "3.1.1",
"@polkadot/rpc-core": "3.1.1",
"@polkadot/rpc-provider": "3.1.1",
"@polkadot/types": "3.1.1",
"@polkadot/types-known": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/util-crypto": "^5.1.1",
"@polkadot/x-rxjs": "3.1.1",
"bn.js": "^4.11.9",
"eventemitter3": "^4.0.7"
}
+50 -33
View File
@@ -35,6 +35,33 @@ declare module '@polkadot/api/types/consts' {
**/
existentialDeposit: Balance & AugmentedConst<ApiType>;
};
bounties: {
[key: string]: Codec;
/**
* Percentage of the curator fee that will be reserved upfront as deposit for bounty curator.
**/
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
/**
* The amount held on deposit for placing a bounty proposal.
**/
bountyDepositBase: BalanceOf & AugmentedConst<ApiType>;
/**
* The delay period for which a bounty beneficiary need to wait before claim the payout.
**/
bountyDepositPayoutDelay: BlockNumber & AugmentedConst<ApiType>;
/**
* Minimum value for a bounty.
**/
bountyValueMinimum: BalanceOf & AugmentedConst<ApiType>;
/**
* The amount held on deposit per byte within bounty description.
**/
dataDepositPerByte: BalanceOf & AugmentedConst<ApiType>;
/**
* Maximum acceptable reason length.
**/
maximumReasonLength: u32 & AugmentedConst<ApiType>;
};
contracts: {
[key: string]: Codec;
/**
@@ -338,6 +365,29 @@ declare module '@polkadot/api/types/consts' {
**/
minimumPeriod: Moment & AugmentedConst<ApiType>;
};
tips: {
[key: string]: Codec;
/**
* The amount held on deposit per byte within the tip report reason.
**/
dataDepositPerByte: BalanceOf & AugmentedConst<ApiType>;
/**
* Maximum acceptable reason length.
**/
maximumReasonLength: u32 & AugmentedConst<ApiType>;
/**
* The period for which a tip remains open after is has achieved threshold tippers.
**/
tipCountdown: BlockNumber & AugmentedConst<ApiType>;
/**
* The amount of the final tip which goes to the original reporter of the tip.
**/
tipFindersFee: Percent & AugmentedConst<ApiType>;
/**
* The amount held on deposit for placing a tip report.
**/
tipReportDepositBase: BalanceOf & AugmentedConst<ApiType>;
};
transactionPayment: {
[key: string]: Codec;
/**
@@ -351,31 +401,10 @@ declare module '@polkadot/api/types/consts' {
};
treasury: {
[key: string]: Codec;
/**
* Percentage of the curator fee that will be reserved upfront as deposit for bounty curator.
**/
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
/**
* The amount held on deposit for placing a bounty proposal.
**/
bountyDepositBase: BalanceOf & AugmentedConst<ApiType>;
/**
* The delay period for which a bounty beneficiary need to wait before claim the payout.
**/
bountyDepositPayoutDelay: BlockNumber & AugmentedConst<ApiType>;
bountyValueMinimum: BalanceOf & AugmentedConst<ApiType>;
/**
* Percentage of spare funds (if any) that are burnt per spend period.
**/
burn: Permill & AugmentedConst<ApiType>;
/**
* The amount held on deposit per byte within the tip report reason or bounty description.
**/
dataDepositPerByte: BalanceOf & AugmentedConst<ApiType>;
/**
* Maximum acceptable reason length.
**/
maximumReasonLength: u32 & AugmentedConst<ApiType>;
/**
* The treasury's module id, used for deriving its sovereign account ID.
**/
@@ -393,18 +422,6 @@ declare module '@polkadot/api/types/consts' {
* Period between successive spends.
**/
spendPeriod: BlockNumber & AugmentedConst<ApiType>;
/**
* The period for which a tip remains open after is has achieved threshold tippers.
**/
tipCountdown: BlockNumber & AugmentedConst<ApiType>;
/**
* The amount of the final tip which goes to the original reporter of the tip.
**/
tipFindersFee: Percent & AugmentedConst<ApiType>;
/**
* The amount held on deposit for placing a tip report.
**/
tipReportDepositBase: BalanceOf & AugmentedConst<ApiType>;
};
vesting: {
[key: string]: Codec;
+33 -27
View File
@@ -158,6 +158,25 @@ declare module '@polkadot/api/types/storage' {
**/
totalIssuance: AugmentedQuery<ApiType, () => Observable<Balance>> & QueryableStorageEntry<ApiType>;
};
bounties: {
[key: string]: QueryableStorageEntry<ApiType>;
/**
* Bounties that have been made.
**/
bounties: AugmentedQuery<ApiType, (arg: BountyIndex | AnyNumber | Uint8Array) => Observable<Option<Bounty>>> & QueryableStorageEntry<ApiType>;
/**
* Bounty indices that have been approved but not yet funded.
**/
bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<BountyIndex>>> & QueryableStorageEntry<ApiType>;
/**
* Number of bounty proposals that have been made.
**/
bountyCount: AugmentedQuery<ApiType, () => Observable<BountyIndex>> & QueryableStorageEntry<ApiType>;
/**
* The description of each bounty.
**/
bountyDescriptions: AugmentedQuery<ApiType, (arg: BountyIndex | AnyNumber | Uint8Array) => Observable<Option<Bytes>>> & QueryableStorageEntry<ApiType>;
};
contracts: {
[key: string]: QueryableStorageEntry<ApiType>;
/**
@@ -948,6 +967,20 @@ declare module '@polkadot/api/types/storage' {
**/
now: AugmentedQuery<ApiType, () => Observable<Moment>> & QueryableStorageEntry<ApiType>;
};
tips: {
[key: string]: QueryableStorageEntry<ApiType>;
/**
* Simple preimage lookup from the reason's hash to the original data. Again, has an
* insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
**/
reasons: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Option<Bytes>>> & QueryableStorageEntry<ApiType>;
/**
* TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
* This has the insecure enumerable hash function since the key itself is already
* guaranteed to be a secure hash.
**/
tips: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Option<OpenTip>>> & QueryableStorageEntry<ApiType>;
};
transactionPayment: {
[key: string]: QueryableStorageEntry<ApiType>;
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>> & QueryableStorageEntry<ApiType>;
@@ -959,22 +992,6 @@ declare module '@polkadot/api/types/storage' {
* Proposal indices that have been approved but not yet awarded.
**/
approvals: AugmentedQuery<ApiType, () => Observable<Vec<ProposalIndex>>> & QueryableStorageEntry<ApiType>;
/**
* Bounties that have been made.
**/
bounties: AugmentedQuery<ApiType, (arg: BountyIndex | AnyNumber | Uint8Array) => Observable<Option<Bounty>>> & QueryableStorageEntry<ApiType>;
/**
* Bounty indices that have been approved but not yet funded.
**/
bountyApprovals: AugmentedQuery<ApiType, () => Observable<Vec<BountyIndex>>> & QueryableStorageEntry<ApiType>;
/**
* Number of bounty proposals that have been made.
**/
bountyCount: AugmentedQuery<ApiType, () => Observable<BountyIndex>> & QueryableStorageEntry<ApiType>;
/**
* The description of each bounty.
**/
bountyDescriptions: AugmentedQuery<ApiType, (arg: BountyIndex | AnyNumber | Uint8Array) => Observable<Option<Bytes>>> & QueryableStorageEntry<ApiType>;
/**
* Number of proposals that have been made.
**/
@@ -983,17 +1000,6 @@ declare module '@polkadot/api/types/storage' {
* Proposals that have been made.
**/
proposals: AugmentedQuery<ApiType, (arg: ProposalIndex | AnyNumber | Uint8Array) => Observable<Option<TreasuryProposal>>> & QueryableStorageEntry<ApiType>;
/**
* Simple preimage lookup from the reason's hash to the original data. Again, has an
* insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
**/
reasons: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Option<Bytes>>> & QueryableStorageEntry<ApiType>;
/**
* Tips that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
* This has the insecure enumerable hash function since the key itself is already
* guaranteed to be a secure hash.
**/
tips: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Option<OpenTip>>> & QueryableStorageEntry<ApiType>;
};
vesting: {
[key: string]: QueryableStorageEntry<ApiType>;
+167 -143
View File
@@ -341,6 +341,128 @@ declare module '@polkadot/api/types/submittable' {
**/
transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
bounties: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
/**
* Accept the curator role for a bounty.
* A deposit will be reserved from curator and refund upon successful payout.
*
* May only be called from the curator.
*
* # <weight>
* - O(1).
* # </weight>
**/
acceptCurator: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Approve a bounty proposal. At a later time, the bounty will be funded and become active
* and the original deposit will be returned.
*
* May only be called from `T::ApproveOrigin`.
*
* # <weight>
* - O(1).
* # </weight>
**/
approveBounty: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds after a delay.
*
* The dispatch origin for this call must be the curator of this bounty.
*
* - `bounty_id`: Bounty ID to award.
* - `beneficiary`: The beneficiary account whom will receive the payout.
*
* # <weight>
* - O(1).
* # </weight>
**/
awardBounty: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array, beneficiary: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Claim the payout from an awarded bounty after payout delay.
*
* The dispatch origin for this call must be the beneficiary of this bounty.
*
* - `bounty_id`: Bounty ID to claim.
*
* # <weight>
* - O(1).
* # </weight>
**/
claimBounty: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Cancel a proposed or active bounty. All the funds will be sent to treasury and
* the curator deposit will be unreserved if possible.
*
* Only `T::RejectOrigin` is able to cancel a bounty.
*
* - `bounty_id`: Bounty ID to cancel.
*
* # <weight>
* - O(1).
* # </weight>
**/
closeBounty: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Extend the expiry time of an active bounty.
*
* The dispatch origin for this call must be the curator of this bounty.
*
* - `bounty_id`: Bounty ID to extend.
* - `remark`: additional information.
*
* # <weight>
* - O(1).
* # </weight>
**/
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Propose a new bounty.
*
* The dispatch origin for this call must be _Signed_.
*
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
* `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,
* or slashed when rejected.
*
* - `curator`: The curator account whom will manage this bounty.
* - `fee`: The curator fee.
* - `value`: The total payment amount of this bounty, curator fee included.
* - `description`: The description of this bounty.
**/
proposeBounty: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Assign a curator to a funded bounty.
*
* May only be called from `T::ApproveOrigin`.
*
* # <weight>
* - O(1).
* # </weight>
**/
proposeCurator: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array, curator: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array, fee: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Unassign curator from a bounty.
*
* This function can only be called by the `RejectOrigin` a signed origin.
*
* If this function is called by the `RejectOrigin`, we assume that the curator is malicious
* or inactive. As a result, we will slash the curator when possible.
*
* If the origin is the curator, we take this as a sign they are unable to do their job and
* they willingly give up. We could slash them, but for now we allow them to recover their
* deposit and exit without issue. (We may want to change this if it is abused.)
*
* Finally, the origin can be anyone if and only if the curator is "inactive". This allows
* anyone in the community to call out that a curator is not doing their due diligence, and
* we should pick a new curator. In this case the curator should also be slashed.
*
* # <weight>
* - O(1).
* # </weight>
**/
unassignCurator: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
contracts: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
/**
@@ -402,6 +524,9 @@ declare module '@polkadot/api/types/submittable' {
* If called after the end of the voting period abstentions are counted as rejections
* unless there is a prime member set and the prime member cast an approval.
*
* If the close operation completes successfully with disapproval, the transaction fee will
* be waived. Otherwise execution of the approved operation will be charged to the caller.
*
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed proposal.
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
@@ -512,6 +637,8 @@ declare module '@polkadot/api/types/submittable' {
*
* Requires the sender to be a member.
*
* Transaction fees will be waived if the member is voting on any particular proposal
* for the first time and the call is successful. Subsequent vote changes will charge a fee.
* # <weight>
* ## Weight
* - `O(M)` where `M` is members-count (code- and governance-bounded)
@@ -3066,6 +3193,9 @@ declare module '@polkadot/api/types/submittable' {
* If called after the end of the voting period abstentions are counted as rejections
* unless there is a prime member set and the prime member cast an approval.
*
* If the close operation completes successfully with disapproval, the transaction fee will
* be waived. Otherwise execution of the approved operation will be charged to the caller.
*
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed proposal.
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
@@ -3176,6 +3306,8 @@ declare module '@polkadot/api/types/submittable' {
*
* Requires the sender to be a member.
*
* Transaction fees will be waived if the member is voting on any particular proposal
* for the first time and the call is successful. Subsequent vote changes will charge a fee.
* # <weight>
* ## Weight
* - `O(M)` where `M` is members-count (code- and governance-bounded)
@@ -3258,73 +3390,8 @@ declare module '@polkadot/api/types/submittable' {
**/
set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
treasury: {
tips: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
/**
* Accept the curator role for a bounty.
* A deposit will be reserved from curator and refund upon successful payout.
*
* May only be called from the curator.
*
* # <weight>
* - O(1).
* - Limited storage reads.
* - One DB change.
* # </weight>
**/
acceptCurator: AugmentedSubmittable<(bountyId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Approve a bounty proposal. At a later time, the bounty will be funded and become active
* and the original deposit will be returned.
*
* May only be called from `T::ApproveOrigin`.
*
* # <weight>
* - O(1).
* - Limited storage reads.
* - One DB change.
* # </weight>
**/
approveBounty: AugmentedSubmittable<(bountyId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Approve a proposal. At a later time, the proposal will be allocated to the beneficiary
* and the original deposit will be returned.
*
* May only be called from `T::ApproveOrigin`.
*
* # <weight>
* - Complexity: O(1).
* - DbReads: `Proposals`, `Approvals`
* - DbWrite: `Approvals`
* # </weight>
**/
approveProposal: AugmentedSubmittable<(proposalId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds after a delay.
*
* The dispatch origin for this call must be the curator of this bounty.
*
* - `bounty_id`: Bounty ID to award.
* - `beneficiary`: The beneficiary account whom will receive the payout.
**/
awardBounty: AugmentedSubmittable<(bountyId: Compact<ProposalIndex> | AnyNumber | Uint8Array, beneficiary: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Claim the payout from an awarded bounty after payout delay.
*
* The dispatch origin for this call must be the beneficiary of this bounty.
*
* - `bounty_id`: Bounty ID to claim.
**/
claimBounty: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Cancel a proposed or active bounty. All the funds will be sent to treasury and
* the curator deposit will be unreserved if possible.
*
* Only `T::RejectOrigin` is able to cancel a bounty.
*
* - `bounty_id`: Bounty ID to cancel.
**/
closeBounty: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Close and payout a tip.
*
@@ -3345,66 +3412,6 @@ declare module '@polkadot/api/types/submittable' {
* # </weight>
**/
closeTip: AugmentedSubmittable<(hash: Hash | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Extend the expiry time of an active bounty.
*
* The dispatch origin for this call must be the curator of this bounty.
*
* - `bounty_id`: Bounty ID to extend.
* - `remark`: additional information.
**/
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<BountyIndex> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Propose a new bounty.
*
* The dispatch origin for this call must be _Signed_.
*
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
* `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,
* or slashed when rejected.
*
* - `curator`: The curator account whom will manage this bounty.
* - `fee`: The curator fee.
* - `value`: The total payment amount of this bounty, curator fee included.
* - `description`: The description of this bounty.
**/
proposeBounty: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Assign a curator to a funded bounty.
*
* May only be called from `T::ApproveOrigin`.
*
* # <weight>
* - O(1).
* - Limited storage reads.
* - One DB change.
* # </weight>
**/
proposeCurator: AugmentedSubmittable<(bountyId: Compact<ProposalIndex> | AnyNumber | Uint8Array, curator: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array, fee: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Put forward a suggestion for spending. A deposit proportional to the value
* is reserved and slashed if the proposal is rejected. It is returned once the
* proposal is awarded.
*
* # <weight>
* - Complexity: O(1)
* - DbReads: `ProposalCount`, `origin account`
* - DbWrites: `ProposalCount`, `Proposals`, `origin account`
* # </weight>
**/
proposeSpend: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array, beneficiary: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Reject a proposed spend. The original deposit will be slashed.
*
* May only be called from `T::RejectOrigin`.
*
* # <weight>
* - Complexity: O(1)
* - DbReads: `Proposals`, `rejected proposer account`
* - DbWrites: `Proposals`, `rejected proposer account`
* # </weight>
**/
rejectProposal: AugmentedSubmittable<(proposalId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
*
@@ -3502,29 +3509,46 @@ declare module '@polkadot/api/types/submittable' {
* # </weight>
**/
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId | string | Uint8Array, tipValue: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
treasury: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
/**
* Unassign curator from a bounty.
* Approve a proposal. At a later time, the proposal will be allocated to the beneficiary
* and the original deposit will be returned.
*
* This function can only be called by the `RejectOrigin` a signed origin.
*
* If this function is called by the `RejectOrigin`, we assume that the curator is malicious
* or inactive. As a result, we will slash the curator when possible.
*
* If the origin is the curator, we take this as a sign they are unable to do their job and
* they willingly give up. We could slash them, but for now we allow them to recover their
* deposit and exit without issue. (We may want to change this if it is abused.)
*
* Finally, the origin can be anyone if and only if the curator is "inactive". This allows
* anyone in the community to call out that a curator is not doing their due diligence, and
* we should pick a new curator. In this case the curator should also be slashed.
* May only be called from `T::ApproveOrigin`.
*
* # <weight>
* - O(1).
* - Limited storage reads.
* - One DB change.
* - Complexity: O(1).
* - DbReads: `Proposals`, `Approvals`
* - DbWrite: `Approvals`
* # </weight>
**/
unassignCurator: AugmentedSubmittable<(bountyId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
approveProposal: AugmentedSubmittable<(proposalId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Put forward a suggestion for spending. A deposit proportional to the value
* is reserved and slashed if the proposal is rejected. It is returned once the
* proposal is awarded.
*
* # <weight>
* - Complexity: O(1)
* - DbReads: `ProposalCount`, `origin account`
* - DbWrites: `ProposalCount`, `Proposals`, `origin account`
* # </weight>
**/
proposeSpend: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array, beneficiary: LookupSource | Address | AccountId | AccountIndex | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
/**
* Reject a proposed spend. The original deposit will be slashed.
*
* May only be called from `T::RejectOrigin`.
*
* # <weight>
* - Complexity: O(1)
* - DbReads: `Proposals`, `rejected proposer account`
* - DbWrites: `Proposals`, `rejected proposer account`
* # </weight>
**/
rejectProposal: AugmentedSubmittable<(proposalId: Compact<ProposalIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
};
utility: {
[key: string]: SubmittableExtrinsicFunction<ApiType>;
+16 -4
View File
@@ -174,6 +174,13 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
return this._rpcCore.provider.hasSubscriptions;
}
/**
* @returns `true` if the API decorate multi-key queries
*/
get supportMulti (): boolean {
return this._rpcCore.provider.hasSubscriptions || !!this._rpcCore.state.queryStorageAt;
}
public injectMetadata (metadata: Metadata, fromEmpty?: boolean, registry?: Registry): void {
const decoratedMeta = expandMetadata(registry || this.#registry, metadata);
@@ -300,10 +307,13 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
}, input as DecoratedRpc<ApiType, RpcInterface>);
}
// only be called if supportMulti is true
protected _decorateMulti<ApiType extends ApiTypes> (decorateMethod: DecorateMethod<ApiType>): QueryableStorageMulti<ApiType> {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return decorateMethod((calls: QueryableStorageMultiArg<ApiType>[]): Observable<Codec[]> =>
this._rpcCore.state.subscribeStorage(
(this.hasSubscriptions
? this._rpcCore.state.subscribeStorage
: this._rpcCore.state.queryStorageAt)(
calls.map((arg: QueryableStorageMultiArg<ApiType>) =>
Array.isArray(arg)
? [arg[0].creator, ...arg.slice(1)]
@@ -403,8 +413,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
this._retrieveMapKeysPaged(creator, opts)));
}
// only support multi where subs are available
if (this.hasSubscriptions) {
if (this.supportMulti) {
// When using double map storage function, user need to pass double map key as an array
decorated.multi = decorateMethod((args: (Arg | Arg[])[]): Observable<Codec[]> =>
this._retrieveMulti(args.map((arg) => [creator, arg])));
@@ -454,7 +463,10 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
...Array(Math.ceil(keys.length / PAGE_SIZE_VALS))
.fill(0)
.map((_, index): Observable<Codec[]> =>
this._rpcCore.state.subscribeStorage(keys.slice(index * PAGE_SIZE_VALS, (index * PAGE_SIZE_VALS) + PAGE_SIZE_VALS))
(this.hasSubscriptions
? this._rpcCore.state.subscribeStorage
: this._rpcCore.state.queryStorageAt
)(keys.slice(index * PAGE_SIZE_VALS, (index * PAGE_SIZE_VALS) + PAGE_SIZE_VALS))
)
).pipe(
map((valsArr): Codec[] =>
+2 -11
View File
@@ -9,6 +9,7 @@ import type { ApiInterfaceRx, ApiTypes, DecoratedRpc, QueryableConsts, Queryable
import { assertReturn } from '@polkadot/util';
import { packageInfo } from '../detectPackage';
import { Init } from './Init';
interface PkgJson {
@@ -16,16 +17,6 @@ interface PkgJson {
version: string;
}
let pkgJson: PkgJson = { name: '@polkadot/api', version: '-' };
import('../package.json')
.then((_pkgJson: unknown): void => {
pkgJson = _pkgJson as PkgJson;
})
.catch((): void => {
// ignore
});
function assertResult<T> (value: T | undefined): T {
return assertReturn(value, 'Api needs to be initialized before using, listen on \'ready\'');
}
@@ -95,7 +86,7 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> {
* @description The library information name & version (from package.json)
*/
public get libraryInfo (): string {
return `${pkgJson.name} v${pkgJson.version}`;
return `${(packageInfo as PkgJson).name} v${(packageInfo as PkgJson).version}`;
}
/**
+6 -2
View File
@@ -54,8 +54,12 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
this._rpc = this._decorateRpc(this._rpcCore, this._decorateMethod);
this._rx.rpc = this._decorateRpc(this._rpcCore, this._rxDecorateMethod);
this._queryMulti = this._decorateMulti(this._decorateMethod);
this._rx.queryMulti = this._decorateMulti(this._rxDecorateMethod);
if (this.supportMulti) {
this._queryMulti = this._decorateMulti(this._decorateMethod);
this._rx.queryMulti = this._decorateMulti(this._rxDecorateMethod);
}
this._rx.signer = options.signer;
this._rpcCore.setRegistrySwap((hash: string | Uint8Array) => this.getBlockRegistry(hash));
+19 -2
View File
@@ -1,8 +1,25 @@
// Copyright 2017-2020 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use
//
// new URL(import.meta.url).pathname)
//
// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have
// nice things... In this case it is even worse since import.meta.url won't even make it compile, so
// there is a complete dead end with usage thereof
//
// When that is fixed, a solution is to have both .js & .mjs files, with the following content -
//
// cjs: util.detectPackage(packageInfo, () => __dirname);
// esm: detectPackage(packageInfo, () => import.meta.url);
//
// With the above we additionally need a .d.ts to just export the packageInfo
import { detectPackage } from '@polkadot/util';
import packageJson from './package.json';
import packageInfo from './package-info.json';
detectPackage(packageJson, typeof __dirname !== 'undefined' && __dirname);
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
export { packageInfo };
+11 -7
View File
@@ -1,9 +1,13 @@
{
"name": "@polkadot/metadata",
"version": "3.0.1",
"version": "3.1.1",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"sideEffects": false,
"module": "index.mjs",
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
],
"repository": "github:polkadot-js/api",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -13,13 +17,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "3.0.1",
"@polkadot/types-known": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/util-crypto": "^5.0.1",
"@polkadot/types": "3.1.1",
"@polkadot/types-known": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/util-crypto": "^5.1.1",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^5.0.1"
"@polkadot/keyring": "^5.1.1"
}
}
+25
View File
@@ -0,0 +1,25 @@
// Copyright 2017-2020 @polkadot/metadata authors & contributors
// SPDX-License-Identifier: Apache-2.0
// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use
//
// new URL(import.meta.url).pathname)
//
// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have
// nice things... In this case it is even worse since import.meta.url won't even make it compile, so
// there is a complete dead end with usage thereof
//
// When that is fixed, a solution is to have both .js & .mjs files, with the following content -
//
// cjs: util.detectPackage(packageInfo, () => __dirname);
// esm: detectPackage(packageInfo, () => import.meta.url);
//
// With the above we additionally need a .d.ts to just export the packageInfo
import { detectPackage } from '@polkadot/util';
import packageInfo from './package-info.json';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
export { packageInfo };
+2
View File
@@ -1,5 +1,7 @@
// Copyright 2017-2020 @polkadot/metadata authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
export { Metadata } from './Metadata';
export { constantsFromMeta, expandMetadata, extrinsicsFromMeta, storageFromMeta } from './decorate';
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+8 -7
View File
@@ -1,8 +1,9 @@
{
"name": "@polkadot/rpc-core",
"version": "3.0.1",
"version": "3.1.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"module": "index.mjs",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -13,13 +14,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "3.0.1",
"@polkadot/rpc-provider": "3.0.1",
"@polkadot/types": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/x-rxjs": "3.0.1"
"@polkadot/metadata": "3.1.1",
"@polkadot/rpc-provider": "3.1.1",
"@polkadot/types": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/x-rxjs": "3.1.1"
},
"devDependencies": {
"@polkadot/keyring": "^5.0.1"
"@polkadot/keyring": "^5.1.1"
}
}
+26 -47
View File
@@ -46,6 +46,12 @@ function logErrorMessage (method: string, { params, type }: DefinitionRpc, error
l.error(`${method}(${inputs}): ${type}:: ${error.message}`);
}
function isTreatAsHex (key: StorageKey): boolean {
// :code is problematic - it does not have the length attached, which is
// unlike all other storage entries where it is indeed properly encoded
return ['0x3a636f6465'].includes(key.toHex());
}
/**
* @name Rpc
* @summary The API may use a HTTP or WebSockets provider.
@@ -369,12 +375,6 @@ export class RpcCore implements RpcInterface {
);
}
private _treatAsHex (key: StorageKey): boolean {
// :code is problematic - it does not have the length attached, which is
// unlike all other storage entries where it is indeed properly encoded
return ['0x3a636f6465'].includes(key.toHex());
}
private _formatOutput (registry: Registry, method: string, rpc: DefinitionRpc, params: Codec[], result?: any): Codec | Codec[] {
if (rpc.type === 'StorageData') {
const key = params[0] as StorageKey;
@@ -402,47 +402,17 @@ export class RpcCore implements RpcInterface {
}
private _formatStorageData (registry: Registry, key: StorageKey, value: string | null): Codec {
// single return value (via state.getStorage), decode the value based on the
// outputType that we have specified. Fallback to Raw on nothing
const type = key.outputType || 'Raw';
const meta = key.meta || EMPTY_META;
const isEmpty = isNull(value);
// we convert to Uint8Array since it maps to the raw encoding, all
// data will be correctly encoded (incl. numbers, excl. :code)
const input = isEmpty
? null
: this._treatAsHex(key)
: isTreatAsHex(key)
? value
: u8aToU8a(value);
if (meta.modifier.isOptional) {
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);
}
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);
}
return this._newType(registry, key, input, isEmpty);
}
private _formatStorageSet (registry: Registry, keys: Vec<StorageKey>, changes: [string, string | null][]): Codec[] {
@@ -453,7 +423,7 @@ export class RpcCore implements RpcInterface {
// one at a time, all based on the query types. Three values can be returned -
// - Codec - There is a valid value, non-empty
// - null - The storage key is empty
return keys.reduce((results: Codec[], key: StorageKey, index: number): Codec[] => {
return keys.reduce((results: Codec[], key: StorageKey, index): Codec[] => {
results.push(this._formatStorageSetEntry(registry, key, changes, withCache, index));
return results;
@@ -461,10 +431,7 @@ export class RpcCore implements RpcInterface {
}
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]) => key === hexKey);
// if we don't find the value, this is our fallback
@@ -475,7 +442,7 @@ export class RpcCore implements RpcInterface {
? (witCache && this.#storageCache.get(hexKey)) || null
: found[1];
const isEmpty = isNull(value);
const input = isEmpty || this._treatAsHex(key)
const input = isEmpty || isTreatAsHex(key)
? value
: u8aToU8a(value);
@@ -484,14 +451,26 @@ export class RpcCore implements RpcInterface {
// will increase memory beyond what is allowed.
this.#storageCache.set(hexKey, value);
return this._newType(registry, key, input, isEmpty, entryIndex);
}
private _newType (registry: Registry, key: StorageKey, input: string | Uint8Array | null, isEmpty: boolean, entryIndex = -1): Codec {
// single return value (via state.getStorage), decode the value based on the
// outputType that we have specified. Fallback to Raw on nothing
const type = key.outputType || 'Raw';
const meta = key.meta || EMPTY_META;
const entryNum = entryIndex === -1
? ''
: ` entry ${entryIndex}:`;
if (meta.modifier.isOptional) {
let inner = null;
if (!isEmpty) {
try {
inner = createTypeUnsafe(registry, type, [input], true);
inner = createTypeUnsafe(registry, type, [input], { isPedantic: true });
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}: entry ${entryIndex}:`, (error as Error).message);
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:${entryNum}`, (error as Error).message);
}
}
@@ -505,9 +484,9 @@ export class RpcCore implements RpcInterface {
? hexToU8a(meta.fallback.toHex())
: undefined
: input
], true);
], { isPedantic: true });
} catch (error) {
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}: entry ${entryIndex}:`, (error as Error).message);
l.error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:${entryNum}`, (error as Error).message);
return registry.createType('Raw', input);
}
+3 -1
View File
@@ -1,7 +1,9 @@
// Copyright 2017-2020 @polkadot/rpc-core authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { asapScheduler, ConnectableObservable, MonoTypeOperatorFunction, Observable, Subscription, TeardownLogic } from '@polkadot/x-rxjs';
import type { ConnectableObservable, MonoTypeOperatorFunction, TeardownLogic } from '@polkadot/x-rxjs';
import { asapScheduler, Observable, Subscription } from '@polkadot/x-rxjs';
/** @internal */
export function refCountDelay <T> (delay = 1750): MonoTypeOperatorFunction<T> {
+9 -8
View File
@@ -1,8 +1,9 @@
{
"name": "@polkadot/rpc-provider",
"version": "3.0.1",
"version": "3.1.1",
"description": "Transport providers for the API",
"main": "index.js",
"module": "index.mjs",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -13,17 +14,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/util-crypto": "^5.0.1",
"@polkadot/x-fetch": "^5.0.1",
"@polkadot/x-ws": "^5.0.1",
"@polkadot/types": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/util-crypto": "^5.1.1",
"@polkadot/x-fetch": "^5.1.1",
"@polkadot/x-ws": "^5.1.1",
"bn.js": "^4.11.9",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@polkadot/keyring": "^5.0.1",
"@polkadot/metadata": "3.0.1",
"@polkadot/keyring": "^5.1.1",
"@polkadot/metadata": "3.1.1",
"mock-socket": "^9.0.3",
"nock": "^13.0.5"
}
+8 -7
View File
@@ -1,8 +1,9 @@
{
"name": "@polkadot/typegen",
"version": "3.0.1",
"version": "3.1.1",
"description": "Type generation scripts",
"main": "index.js",
"module": "index.mjs",
"sideEffects": false,
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.js",
@@ -22,17 +23,17 @@
"@babel/core": "^7.12.10",
"@babel/register": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@polkadot/api": "3.0.1",
"@polkadot/metadata": "3.0.1",
"@polkadot/rpc-provider": "3.0.1",
"@polkadot/types": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/api": "3.1.1",
"@polkadot/metadata": "3.1.1",
"@polkadot/rpc-provider": "3.1.1",
"@polkadot/types": "3.1.1",
"@polkadot/util": "^5.1.1",
"handlebars": "^4.7.6",
"websocket": "^1.0.33",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/websocket": "^1.0.1",
"@types/yargs": "^15.0.11"
"@types/yargs": "^15.0.12"
}
}
@@ -15,13 +15,11 @@ try {
['module-resolver', {
alias: {
'^@polkadot/api-derive(.*)': './packages/api-derive/src\\1',
'^@polkadot/api/package.json': './packages/api/package.json',
'^@polkadot/api(.*)': './packages/api/src/\\1',
'^@polkadot/metadata(.*)': './packages/metadata/src\\1',
'^@polkadot/rpc-core(.*)': './packages/rpc-core/src\\1',
'^@polkadot/rpc-provider(.*)': './packages/rpc-provider/src\\1',
'^@polkadot/types-known(.*)': './packages/types-known/src\\1',
'^@polkadot/types/package.json': './packages/types/package.json',
'^@polkadot/types(.*)': './packages/types/src\\1'
}
}]
@@ -16,7 +16,6 @@ try {
alias: {
'^@polkadot/metadata(.*)': './packages/metadata/src\\1',
'^@polkadot/types-known(.*)': './packages/types-known/src\\1',
'^@polkadot/types/package.json': './packages/types/package.json',
'^@polkadot/types(.*)': './packages/types/src\\1'
}
}]
@@ -17,7 +17,6 @@ try {
'^@polkadot/metadata(.*)': './packages/metadata/src\\1',
'^@polkadot/typegen(.*)': './packages/typegen/src\\1',
'^@polkadot/types-known(.*)': './packages/types-known/src\\1',
'^@polkadot/types/package.json': './packages/types/package.json',
'^@polkadot/types(.*)': './packages/types/src\\1'
}
}]
@@ -16,7 +16,6 @@ try {
alias: {
'^@polkadot/metadata(.*)': './packages/metadata/src\\1',
'^@polkadot/types-known(.*)': './packages/types-known/src\\1',
'^@polkadot/types/package.json': './packages/types/package.json',
'^@polkadot/types(.*)': './packages/types/src\\1'
}
}]
@@ -16,7 +16,6 @@ try {
alias: {
'^@polkadot/metadata(.*)': './packages/metadata/src\\1',
'^@polkadot/types-known(.*)': './packages/types-known/src\\1',
'^@polkadot/types/package.json': './packages/types/package.json',
'^@polkadot/types(.*)': './packages/types/src\\1'
}
}]
+1 -1
View File
@@ -7,7 +7,7 @@
import process from 'process';
import yargs from 'yargs';
import { ApiPromise, WsProvider } from '@polkadot/api/index';
import { ApiPromise, WsProvider } from '@polkadot/api';
/** @internal */
async function run (ws: string): Promise<void> {
+1 -1
View File
@@ -3,7 +3,7 @@
import Handlebars from 'handlebars';
import { Metadata } from '@polkadot/metadata';
import { Metadata } from '@polkadot/metadata/Metadata';
import staticData from '@polkadot/metadata/static';
import { TypeRegistry } from '@polkadot/types/create';
import * as defaultDefs from '@polkadot/types/interfaces/definitions';
+1 -1
View File
@@ -6,7 +6,7 @@ import type { Registry } from '@polkadot/types/types';
import Handlebars from 'handlebars';
import { Metadata } from '@polkadot/metadata';
import { Metadata } from '@polkadot/metadata/Metadata';
import staticData from '@polkadot/metadata/static';
import { TypeRegistry } from '@polkadot/types/create';
import * as defaultDefs from '@polkadot/types/interfaces/definitions';
+1 -1
View File
@@ -5,7 +5,7 @@ import type { Registry } from '@polkadot/types/types';
import Handlebars from 'handlebars';
import { Metadata } from '@polkadot/metadata';
import { Metadata } from '@polkadot/metadata/Metadata';
import staticData from '@polkadot/metadata/static';
import { TypeRegistry } from '@polkadot/types/create';
import * as defaultDefs from '@polkadot/types/interfaces/definitions';
+4 -3
View File
@@ -1,8 +1,9 @@
{
"name": "@polkadot/types-known",
"version": "3.0.1",
"version": "3.1.1",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"module": "index.mjs",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -13,8 +14,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/types": "3.1.1",
"@polkadot/util": "^5.1.1",
"bn.js": "^4.11.9"
},
"devDependencies": {
+11 -7
View File
@@ -1,9 +1,13 @@
{
"name": "@polkadot/types",
"version": "3.0.1",
"version": "3.1.1",
"description": "Implementation of the Parity codec",
"main": "index.js",
"sideEffects": false,
"module": "index.mjs",
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"contributors": [],
@@ -13,14 +17,14 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "3.0.1",
"@polkadot/util": "^5.0.1",
"@polkadot/util-crypto": "^5.0.1",
"@polkadot/x-rxjs": "3.0.1",
"@polkadot/metadata": "3.1.1",
"@polkadot/util": "^5.1.1",
"@polkadot/util-crypto": "^5.1.1",
"@polkadot/x-rxjs": "3.1.1",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^5.0.1"
"@polkadot/keyring": "^5.1.1"
}
}
+180 -4
View File
@@ -29,7 +29,7 @@ import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMu
import type { DoubleMapTypeLatest, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV12, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV9, MapTypeLatest, MapTypeV10, MapTypeV11, MapTypeV12, MapTypeV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV9, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV9, StorageMetadataLatest, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
import type { AbridgedCandidateReceipt, AttestedCandidate, AuctionIndex, BackedCandidate, Bidder, CandidateCommitments, CandidateDescriptor, CandidatePendingAvailablility, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, DoubleVoteReport, DownwardMessage, GlobalValidationSchedule, HeadData, HrmpChannelId, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, LocalValidationData, NewBidder, OutboundHrmpMessage, ParaId, ParaInfo, ParaPastCodeMeta, ParaScheduling, ParachainDispatchOrigin, ParachainProposal, RegisteredParachainInfo, RelayChainBlockNumber, Remark, Retriable, Scheduling, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, UpwardMessage, ValidationCode, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
import type { AbridgedCandidateReceipt, AbstractFungible, AbstractNonFungible, AccountId32Junction, AccountIndex64Junction, AccountKey20Junction, AssetInstance, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Balances, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, ConcreteFungible, ConcreteNonFungible, CoreAssignment, CoreIndex, CoreOccupied, DepositAsset, DepositReserveAsset, DoubleVoteReport, DownwardMessage, ExchangeAsset, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InitiateReserveWithdraw, InitiateTeleport, Junction, LeasePeriod, LeasePeriodOf, LocalValidationData, MultiAsset, MultiLocation, NetworkId, NewBidder, Order, OriginKind, OutboundHrmpMessage, ParaId, ParaInfo, ParaPastCodeMeta, ParaScheduling, ParachainDispatchOrigin, ParachainProposal, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueryHolding, QueuedParathread, RegisteredParachainInfo, RelayChainBlockNumber, RelayTo, RelayedFrom, Remark, ReserveAssetDeposit, Retriable, Scheduling, SessionInfo, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, Statement, SubId, TeleportAsset, Transact, TransientValidationData, UpwardMessage, ValidationCode, ValidationData, ValidationFunctionParams, ValidatorGroup, ValidatorSignature, ValidityAttestation, VersionedMultiAsset, VersionedMultiLocation, VersionedXcm, WinningData, WinningDataEntry, WithdrawAsset, Xcm, XcmError, XcmResult } from '@polkadot/types/interfaces/parachains';
import type { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { Approvals } from '@polkadot/types/interfaces/poll';
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
@@ -1381,28 +1381,49 @@ declare module '@polkadot/types/types/registry' {
AbridgedCandidateReceipt: AbridgedCandidateReceipt;
'Option<AbridgedCandidateReceipt>': Option<AbridgedCandidateReceipt>;
'Vec<AbridgedCandidateReceipt>': Vec<AbridgedCandidateReceipt>;
AssignmentId: AssignmentId;
'Option<AssignmentId>': Option<AssignmentId>;
'Vec<AssignmentId>': Vec<AssignmentId>;
AssignmentKind: AssignmentKind;
'Option<AssignmentKind>': Option<AssignmentKind>;
'Vec<AssignmentKind>': Vec<AssignmentKind>;
AttestedCandidate: AttestedCandidate;
'Option<AttestedCandidate>': Option<AttestedCandidate>;
'Vec<AttestedCandidate>': Vec<AttestedCandidate>;
AuthorityDiscoveryId: AuthorityDiscoveryId;
'Option<AuthorityDiscoveryId>': Option<AuthorityDiscoveryId>;
'Vec<AuthorityDiscoveryId>': Vec<AuthorityDiscoveryId>;
AuctionIndex: AuctionIndex;
'Compact<AuctionIndex>': Compact<AuctionIndex>;
'Option<AuctionIndex>': Option<AuctionIndex>;
'Vec<AuctionIndex>': Vec<AuctionIndex>;
AvailabilityBitfield: AvailabilityBitfield;
'Option<AvailabilityBitfield>': Option<AvailabilityBitfield>;
'Vec<AvailabilityBitfield>': Vec<AvailabilityBitfield>;
AvailabilityBitfieldRecord: AvailabilityBitfieldRecord;
'Option<AvailabilityBitfieldRecord>': Option<AvailabilityBitfieldRecord>;
'Vec<AvailabilityBitfieldRecord>': Vec<AvailabilityBitfieldRecord>;
BackedCandidate: BackedCandidate;
'Option<BackedCandidate>': Option<BackedCandidate>;
'Vec<BackedCandidate>': Vec<BackedCandidate>;
Bidder: Bidder;
'Option<Bidder>': Option<Bidder>;
'Vec<Bidder>': Vec<Bidder>;
BufferedSessionChange: BufferedSessionChange;
'Option<BufferedSessionChange>': Option<BufferedSessionChange>;
'Vec<BufferedSessionChange>': Vec<BufferedSessionChange>;
CandidateCommitments: CandidateCommitments;
'Option<CandidateCommitments>': Option<CandidateCommitments>;
'Vec<CandidateCommitments>': Vec<CandidateCommitments>;
CandidateDescriptor: CandidateDescriptor;
'Option<CandidateDescriptor>': Option<CandidateDescriptor>;
'Vec<CandidateDescriptor>': Vec<CandidateDescriptor>;
CandidatePendingAvailablility: CandidatePendingAvailablility;
'Option<CandidatePendingAvailablility>': Option<CandidatePendingAvailablility>;
'Vec<CandidatePendingAvailablility>': Vec<CandidatePendingAvailablility>;
CandidateHash: CandidateHash;
'Option<CandidateHash>': Option<CandidateHash>;
'Vec<CandidateHash>': Vec<CandidateHash>;
CandidatePendingAvailability: CandidatePendingAvailability;
'Option<CandidatePendingAvailability>': Option<CandidatePendingAvailability>;
'Vec<CandidatePendingAvailability>': Vec<CandidatePendingAvailability>;
CandidateReceipt: CandidateReceipt;
'Option<CandidateReceipt>': Option<CandidateReceipt>;
'Vec<CandidateReceipt>': Vec<CandidateReceipt>;
@@ -1415,21 +1436,50 @@ declare module '@polkadot/types/types/registry' {
CommittedCandidateReceipt: CommittedCandidateReceipt;
'Option<CommittedCandidateReceipt>': Option<CommittedCandidateReceipt>;
'Vec<CommittedCandidateReceipt>': Vec<CommittedCandidateReceipt>;
CoreAssignment: CoreAssignment;
'Option<CoreAssignment>': Option<CoreAssignment>;
'Vec<CoreAssignment>': Vec<CoreAssignment>;
CoreIndex: CoreIndex;
'Compact<CoreIndex>': Compact<CoreIndex>;
'Option<CoreIndex>': Option<CoreIndex>;
'Vec<CoreIndex>': Vec<CoreIndex>;
CoreOccupied: CoreOccupied;
'Option<CoreOccupied>': Option<CoreOccupied>;
'Vec<CoreOccupied>': Vec<CoreOccupied>;
DoubleVoteReport: DoubleVoteReport;
'Option<DoubleVoteReport>': Option<DoubleVoteReport>;
'Vec<DoubleVoteReport>': Vec<DoubleVoteReport>;
DownwardMessage: DownwardMessage;
'Option<DownwardMessage>': Option<DownwardMessage>;
'Vec<DownwardMessage>': Vec<DownwardMessage>;
GroupIndex: GroupIndex;
'Compact<GroupIndex>': Compact<GroupIndex>;
'Option<GroupIndex>': Option<GroupIndex>;
'Vec<GroupIndex>': Vec<GroupIndex>;
GlobalValidationSchedule: GlobalValidationSchedule;
'Option<GlobalValidationSchedule>': Option<GlobalValidationSchedule>;
'Vec<GlobalValidationSchedule>': Vec<GlobalValidationSchedule>;
HeadData: HeadData;
'Option<HeadData>': Option<HeadData>;
'Vec<HeadData>': Vec<HeadData>;
HostConfiguration: HostConfiguration;
'Option<HostConfiguration>': Option<HostConfiguration>;
'Vec<HostConfiguration>': Vec<HostConfiguration>;
HrmpChannel: HrmpChannel;
'Option<HrmpChannel>': Option<HrmpChannel>;
'Vec<HrmpChannel>': Vec<HrmpChannel>;
HrmpChannelId: HrmpChannelId;
'Option<HrmpChannelId>': Option<HrmpChannelId>;
'Vec<HrmpChannelId>': Vec<HrmpChannelId>;
HrmpOpenChannelRequest: HrmpOpenChannelRequest;
'Option<HrmpOpenChannelRequest>': Option<HrmpOpenChannelRequest>;
'Vec<HrmpOpenChannelRequest>': Vec<HrmpOpenChannelRequest>;
InboundDownwardMessage: InboundDownwardMessage;
'Option<InboundDownwardMessage>': Option<InboundDownwardMessage>;
'Vec<InboundDownwardMessage>': Vec<InboundDownwardMessage>;
InboundHrmpMessage: InboundHrmpMessage;
'Option<InboundHrmpMessage>': Option<InboundHrmpMessage>;
'Vec<InboundHrmpMessage>': Vec<InboundHrmpMessage>;
IncomingParachain: IncomingParachain;
'Option<IncomingParachain>': Option<IncomingParachain>;
'Vec<IncomingParachain>': Vec<IncomingParachain>;
@@ -1472,10 +1522,25 @@ declare module '@polkadot/types/types/registry' {
ParaScheduling: ParaScheduling;
'Option<ParaScheduling>': Option<ParaScheduling>;
'Vec<ParaScheduling>': Vec<ParaScheduling>;
ParathreadClaim: ParathreadClaim;
'Option<ParathreadClaim>': Option<ParathreadClaim>;
'Vec<ParathreadClaim>': Vec<ParathreadClaim>;
ParathreadClaimQueue: ParathreadClaimQueue;
'Option<ParathreadClaimQueue>': Option<ParathreadClaimQueue>;
'Vec<ParathreadClaimQueue>': Vec<ParathreadClaimQueue>;
ParathreadEntry: ParathreadEntry;
'Option<ParathreadEntry>': Option<ParathreadEntry>;
'Vec<ParathreadEntry>': Vec<ParathreadEntry>;
PersistedValidationData: PersistedValidationData;
'Option<PersistedValidationData>': Option<PersistedValidationData>;
'Vec<PersistedValidationData>': Vec<PersistedValidationData>;
RelayChainBlockNumber: RelayChainBlockNumber;
'Compact<RelayChainBlockNumber>': Compact<RelayChainBlockNumber>;
'Option<RelayChainBlockNumber>': Option<RelayChainBlockNumber>;
'Vec<RelayChainBlockNumber>': Vec<RelayChainBlockNumber>;
QueuedParathread: QueuedParathread;
'Option<QueuedParathread>': Option<QueuedParathread>;
'Vec<QueuedParathread>': Vec<QueuedParathread>;
Remark: Remark;
'Option<Remark>': Option<Remark>;
'Vec<Remark>': Vec<Remark>;
@@ -1485,6 +1550,9 @@ declare module '@polkadot/types/types/registry' {
Scheduling: Scheduling;
'Option<Scheduling>': Option<Scheduling>;
'Vec<Scheduling>': Vec<Scheduling>;
SessionInfo: SessionInfo;
'Option<SessionInfo>': Option<SessionInfo>;
'Vec<SessionInfo>': Vec<SessionInfo>;
SignedAvailabilityBitfield: SignedAvailabilityBitfield;
'Option<SignedAvailabilityBitfield>': Option<SignedAvailabilityBitfield>;
'Vec<SignedAvailabilityBitfield>': Vec<SignedAvailabilityBitfield>;
@@ -1504,6 +1572,9 @@ declare module '@polkadot/types/types/registry' {
'Compact<SubId>': Compact<SubId>;
'Option<SubId>': Option<SubId>;
'Vec<SubId>': Vec<SubId>;
TransientValidationData: TransientValidationData;
'Option<TransientValidationData>': Option<TransientValidationData>;
'Vec<TransientValidationData>': Vec<TransientValidationData>;
UpwardMessage: UpwardMessage;
'Option<UpwardMessage>': Option<UpwardMessage>;
'Vec<UpwardMessage>': Vec<UpwardMessage>;
@@ -1513,18 +1584,123 @@ declare module '@polkadot/types/types/registry' {
ValidationCode: ValidationCode;
'Option<ValidationCode>': Option<ValidationCode>;
'Vec<ValidationCode>': Vec<ValidationCode>;
ValidationData: ValidationData;
'Option<ValidationData>': Option<ValidationData>;
'Vec<ValidationData>': Vec<ValidationData>;
ValidatorGroup: ValidatorGroup;
'Option<ValidatorGroup>': Option<ValidatorGroup>;
'Vec<ValidatorGroup>': Vec<ValidatorGroup>;
ValidatorSignature: ValidatorSignature;
'Option<ValidatorSignature>': Option<ValidatorSignature>;
'Vec<ValidatorSignature>': Vec<ValidatorSignature>;
ValidityAttestation: ValidityAttestation;
'Option<ValidityAttestation>': Option<ValidityAttestation>;
'Vec<ValidityAttestation>': Vec<ValidityAttestation>;
VersionedXcm: VersionedXcm;
'Option<VersionedXcm>': Option<VersionedXcm>;
'Vec<VersionedXcm>': Vec<VersionedXcm>;
WinningData: WinningData;
'Option<WinningData>': Option<WinningData>;
'Vec<WinningData>': Vec<WinningData>;
WinningDataEntry: WinningDataEntry;
'Option<WinningDataEntry>': Option<WinningDataEntry>;
'Vec<WinningDataEntry>': Vec<WinningDataEntry>;
WithdrawAsset: WithdrawAsset;
'Option<WithdrawAsset>': Option<WithdrawAsset>;
'Vec<WithdrawAsset>': Vec<WithdrawAsset>;
ReserveAssetDeposit: ReserveAssetDeposit;
'Option<ReserveAssetDeposit>': Option<ReserveAssetDeposit>;
'Vec<ReserveAssetDeposit>': Vec<ReserveAssetDeposit>;
TeleportAsset: TeleportAsset;
'Option<TeleportAsset>': Option<TeleportAsset>;
'Vec<TeleportAsset>': Vec<TeleportAsset>;
Balances: Balances;
'Option<Balances>': Option<Balances>;
'Vec<Balances>': Vec<Balances>;
Transact: Transact;
'Option<Transact>': Option<Transact>;
'Vec<Transact>': Vec<Transact>;
RelayTo: RelayTo;
'Option<RelayTo>': Option<RelayTo>;
'Vec<RelayTo>': Vec<RelayTo>;
RelayedFrom: RelayedFrom;
'Option<RelayedFrom>': Option<RelayedFrom>;
'Vec<RelayedFrom>': Vec<RelayedFrom>;
Xcm: Xcm;
'Option<Xcm>': Option<Xcm>;
'Vec<Xcm>': Vec<Xcm>;
XcmError: XcmError;
'Option<XcmError>': Option<XcmError>;
'Vec<XcmError>': Vec<XcmError>;
XcmResult: XcmResult;
'Option<XcmResult>': Option<XcmResult>;
'Vec<XcmResult>': Vec<XcmResult>;
OriginKind: OriginKind;
'Option<OriginKind>': Option<OriginKind>;
'Vec<OriginKind>': Vec<OriginKind>;
NetworkId: NetworkId;
'Option<NetworkId>': Option<NetworkId>;
'Vec<NetworkId>': Vec<NetworkId>;
MultiLocation: MultiLocation;
'Option<MultiLocation>': Option<MultiLocation>;
'Vec<MultiLocation>': Vec<MultiLocation>;
AccountId32Junction: AccountId32Junction;
'Option<AccountId32Junction>': Option<AccountId32Junction>;
'Vec<AccountId32Junction>': Vec<AccountId32Junction>;
AccountIndex64Junction: AccountIndex64Junction;
'Option<AccountIndex64Junction>': Option<AccountIndex64Junction>;
'Vec<AccountIndex64Junction>': Vec<AccountIndex64Junction>;
AccountKey20Junction: AccountKey20Junction;
'Option<AccountKey20Junction>': Option<AccountKey20Junction>;
'Vec<AccountKey20Junction>': Vec<AccountKey20Junction>;
Junction: Junction;
'Option<Junction>': Option<Junction>;
'Vec<Junction>': Vec<Junction>;
VersionedMultiLocation: VersionedMultiLocation;
'Option<VersionedMultiLocation>': Option<VersionedMultiLocation>;
'Vec<VersionedMultiLocation>': Vec<VersionedMultiLocation>;
AssetInstance: AssetInstance;
'Option<AssetInstance>': Option<AssetInstance>;
'Vec<AssetInstance>': Vec<AssetInstance>;
AbstractFungible: AbstractFungible;
'Option<AbstractFungible>': Option<AbstractFungible>;
'Vec<AbstractFungible>': Vec<AbstractFungible>;
AbstractNonFungible: AbstractNonFungible;
'Option<AbstractNonFungible>': Option<AbstractNonFungible>;
'Vec<AbstractNonFungible>': Vec<AbstractNonFungible>;
ConcreteFungible: ConcreteFungible;
'Option<ConcreteFungible>': Option<ConcreteFungible>;
'Vec<ConcreteFungible>': Vec<ConcreteFungible>;
ConcreteNonFungible: ConcreteNonFungible;
'Option<ConcreteNonFungible>': Option<ConcreteNonFungible>;
'Vec<ConcreteNonFungible>': Vec<ConcreteNonFungible>;
MultiAsset: MultiAsset;
'Option<MultiAsset>': Option<MultiAsset>;
'Vec<MultiAsset>': Vec<MultiAsset>;
VersionedMultiAsset: VersionedMultiAsset;
'Option<VersionedMultiAsset>': Option<VersionedMultiAsset>;
'Vec<VersionedMultiAsset>': Vec<VersionedMultiAsset>;
DepositAsset: DepositAsset;
'Option<DepositAsset>': Option<DepositAsset>;
'Vec<DepositAsset>': Vec<DepositAsset>;
DepositReserveAsset: DepositReserveAsset;
'Option<DepositReserveAsset>': Option<DepositReserveAsset>;
'Vec<DepositReserveAsset>': Vec<DepositReserveAsset>;
ExchangeAsset: ExchangeAsset;
'Option<ExchangeAsset>': Option<ExchangeAsset>;
'Vec<ExchangeAsset>': Vec<ExchangeAsset>;
InitiateReserveWithdraw: InitiateReserveWithdraw;
'Option<InitiateReserveWithdraw>': Option<InitiateReserveWithdraw>;
'Vec<InitiateReserveWithdraw>': Vec<InitiateReserveWithdraw>;
InitiateTeleport: InitiateTeleport;
'Option<InitiateTeleport>': Option<InitiateTeleport>;
'Vec<InitiateTeleport>': Vec<InitiateTeleport>;
QueryHolding: QueryHolding;
'Option<QueryHolding>': Option<QueryHolding>;
'Vec<QueryHolding>': Vec<QueryHolding>;
Order: Order;
'Option<Order>': Option<Order>;
'Vec<Order>': Vec<Order>;
Approvals: Approvals;
'Option<Approvals>': Option<Approvals>;
'Vec<Approvals>': Vec<Approvals>;
+7 -3
View File
@@ -8,6 +8,11 @@ import { isU8a, logger, u8aToHex } from '@polkadot/util';
import { createClass } from './createClass';
interface UnsafeOptions {
isPedantic?: boolean;
withoutLog?: boolean;
}
const l = logger('registry');
function u8aHasValue (value: Uint8Array): boolean {
@@ -58,14 +63,13 @@ function initType<T extends Codec = Codec, K extends string = string> (registry:
// An unsafe version of the `createType` below. It's unsafe because the `type`
// argument here can be any string, which, when it cannot parse, will yield a
// runtime error.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function createTypeUnsafe<T extends Codec = Codec, K extends string = string> (registry: Registry, type: K, params: any[] = [], isPedantic?: boolean): T {
export function createTypeUnsafe<T extends Codec = Codec, K extends string = string> (registry: Registry, type: K, params: any[] = [], { withoutLog }: UnsafeOptions = {}): T {
try {
// Circle back to isPedantic when it handles all cases 100% - as of now,
// it provides false warning which is more hinderance than help
return initType(registry, createClass<T, K>(registry, type), params); // , isPedantic);
} catch (error) {
l.error(error);
!withoutLog && l.error(error);
throw new Error(`createType(${type}):: ${(error as Error).message}`);
}
+1
View File
@@ -13,6 +13,7 @@ const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fi
const mappings: Mapper[] = [
// alias <T::InherentOfflineReport as InherentOfflineReport>::Inherent -> InherentOfflineReport
alias(['<T::InherentOfflineReport as InherentOfflineReport>::Inherent'], 'InherentOfflineReport', false),
alias(['VecDeque<'], 'Vec<', false),
// <T::Balance as HasCompact>
cleanupCompact(),
// Remove all the trait prefixes
+19 -4
View File
@@ -1,10 +1,25 @@
// Copyright 2017-2020 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use
//
// new URL(import.meta.url).pathname)
//
// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have
// nice things... In this case it is even worse since import.meta.url won't even make it compile, so
// there is a complete dead end with usage thereof
//
// When that is fixed, a solution is to have both .js & .mjs files, with the following content -
//
// cjs: util.detectPackage(packageInfo, () => __dirname);
// esm: detectPackage(packageInfo, () => import.meta.url);
//
// With the above we additionally need a .d.ts to just export the packageInfo
import { detectPackage } from '@polkadot/util';
import packageJson from './package.json';
import packageInfo from './package-info.json';
// FIXME This really should be `import(...).then(...)`, but need to check rejections
// eslint-disable-next-line @typescript-eslint/no-var-requires
detectPackage(packageJson, typeof __dirname !== 'undefined' && __dirname);
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
export { packageInfo };
@@ -36,12 +36,25 @@ export default {
povBlockHash: 'Hash',
commitments: 'CandidateCommitments'
},
AssignmentId: 'AccountId',
AssignmentKind: {
_enum: {
Parachain: 'Null',
Parathread: '(CollatorId, u32)'
}
},
AttestedCandidate: {
candidate: 'AbridgedCandidateReceipt',
validityVotes: 'Vec<ValidityAttestation>',
validatorIndices: 'BitVec'
},
AuthorityDiscoveryId: 'AccountId',
AuctionIndex: 'u32',
AvailabilityBitfield: 'BitVec',
AvailabilityBitfieldRecord: {
bitfield: 'AvailabilityBitfield',
submittedTt: 'BlockNumber'
},
BackedCandidate: {
candidate: 'CommittedCandidateReceipt',
validityVotes: 'Vec<ValidityAttestation>',
@@ -53,6 +66,12 @@ export default {
Existing: 'ParaId'
}
},
BufferedSessionChange: {
applyAt: 'BlockNumber',
validators: 'Vec<ValidatorId>',
queued: 'Vec<ValidatorId>',
sessionIndex: 'SessionIndex'
},
CandidateCommitments: {
upwardMessages: 'Vec<UpwardMessage>',
horizontalMessages: 'Vec<OutboundHrmpMessage>',
@@ -62,7 +81,7 @@ export default {
hrmpWatermark: 'BlockNumber'
},
CandidateDescriptor: {
paraId: 'u32',
paraId: 'ParaId',
relayParent: 'Hash',
collatorId: 'Hash',
persistedValidationDataHash: 'Hash',
@@ -70,10 +89,13 @@ export default {
erasureRoot: 'Hash',
signature: 'Signature'
},
CandidatePendingAvailablility: {
core: 'u32',
CandidateHash: 'Hash',
CandidatePendingAvailability: {
core: 'CoreIndex',
hash: 'CandidateHash',
descriptor: 'CandidateDescriptor',
availabilityVotes: 'BitVec',
backers: 'BitVec',
relayParentNumber: 'BlockNumber',
backedInNumber: 'BlockNumber'
},
@@ -87,6 +109,19 @@ export default {
descriptor: 'CandidateDescriptor',
commitments: 'CandidateCommitments'
},
CoreAssignment: {
core: 'CoreIndex',
paraId: 'ParaId',
kind: 'AssignmentKind',
groupIdx: 'GroupIndex'
},
CoreIndex: 'u32',
CoreOccupied: {
_enum: {
Parathread: 'ParathreadEntry',
Parachain: 'Null'
}
},
DoubleVoteReport: {
identity: 'ValidatorId',
first: '(Statement, ValidatorSignature)',
@@ -94,22 +129,82 @@ export default {
proof: 'MembershipProof',
signingContext: 'SigningContext'
},
DownwardMessage: {
_enum: {
TransferInto: '(AccountId, Balance, Remark)',
Opaque: 'Vec<u8>'
}
},
DownwardMessage: 'Bytes',
GroupIndex: 'u32',
GlobalValidationSchedule: {
maxCodeSize: 'u32',
maxHeadDataSize: 'u32',
blockNumber: 'BlockNumber'
},
HeadData: 'Bytes',
HostConfiguration: {
validationUpgradeFrequency: 'BlockNumber',
validationUpgradeDelay: 'BlockNumber',
acceptancePeriod: 'BlockNumber',
maxCodeSize: 'u32',
maxHeadDataSize: 'u32',
maxPovSize: 'u32',
parathreadCores: 'u32',
parathreadRetries: 'u32',
groupRotationFrequency: 'BlockNumber',
chainAvailabilityPeriod: 'BlockNumber',
threadAvailabilityPeriod: 'BlockNumber',
schedulingLookahead: 'u32',
maxValidatorsPerCore: 'Option<u32>',
disputePeriod: 'SessionIndex',
noShowSlots: 'u32',
nDelayTranches: 'u32',
zerothDelayTrancheWidth: 'u32',
neededApprovals: 'u32',
relayVrfModuloSamples: 'u32',
maxUpwardQueueCount: 'u32',
maxUpwardQueueSize: 'u32',
maxDownwardMessageSize: 'u32',
preferredDispatchableUpwardMessagesStepWeight: 'Weight',
maxUpwardMessageSize: 'u32',
maxUpwardMessageNumPerCandidate: 'u32',
hrmpOpenRequestTtl: 'u32',
hrmpSenderDeposit: 'Balance',
hrmpRecipientDeposit: 'Balance',
hrmpChannelMaxCapacity: 'u32',
hrmpChannelMaxTotalSize: 'u32',
hrmpMaxParachainInboundChannels: 'u32',
hrmpMaxParathreadInboundChannels: 'u32',
hrmpChannelMaxMessageSize: 'u32',
hrmpMaxParachainOutboundChannels: 'u32',
hrmpMaxParathreadOutboundChannels: 'u32',
hrmpMaxMessageNumPerCandidate: 'u32'
},
HrmpChannel: {
senderDeposit: 'Balance',
recipientDeposit: 'Balance',
maxCapacity: 'u32',
maxTotalSize: 'u32',
max_MessageSize: 'u32',
msgCount: 'u32',
totalSize: 'u32',
mqcHead: 'Option<Hash>'
},
HrmpChannelId: {
sender: 'u32',
receiver: 'u32'
},
HrmpOpenChannelRequest: {
confirmed: 'bool',
age: 'SessionIndex',
senderDeposit: 'Balance',
maxMessageSize: 'u32',
maxCapacity: 'u32',
maxTotalSize: 'u32'
},
InboundDownwardMessage: {
pubSentAt: 'BlockNumber',
pubMsg: 'DownwardMessage'
},
InboundHrmpMessage: {
sentAt: 'BlockNumber',
data: 'Bytes'
},
IncomingParachain: {
_enum: {
Unset: 'NewBidder',
@@ -155,7 +250,27 @@ export default {
ParaScheduling: {
_enum: ['Always', 'Dynamic']
},
ParathreadClaim: '(ParaId, CollatorId)',
ParathreadClaimQueue: {
queue: 'Vec<QueuedParathread>',
nextCoreOffset: 'u32'
},
ParathreadEntry: {
claim: 'ParathreadClaim',
retries: 'u32'
},
PersistedValidationData: {
parentHead: 'HeadData',
blockNumber: 'BlockNumber',
hrmpMqcHeads: 'Vec<(u32, Hash)>',
dmqMqcHead: 'Hash',
maxPovSize: 'u32'
},
RelayChainBlockNumber: 'BlockNumber',
QueuedParathread: {
claim: 'ParathreadEntry',
coreOffset: 'u32'
},
Remark: '[u8; 32]',
Retriable: {
_enum: {
@@ -166,6 +281,18 @@ export default {
Scheduling: {
_enum: ['Always', 'Dynamic']
},
SessionInfo: {
validators: 'Vec<ValidatorId>',
discoveryKeys: 'Vec<AuthorityDiscoveryId>',
assignmentKeys: 'Vec<AssignmentId>',
validatorGroups: 'Vec<ValidatorGroup>',
nCores: 'u32',
zerothDelayTrancheWidth: 'u32',
relayVrfModuloSamples: 'u32',
nDelayTranches: 'u32',
noShowSlots: 'u32',
neededApprovals: 'u32'
},
SignedAvailabilityBitfield: {
payload: 'BitVec',
validatorIndex: 'u32',
@@ -188,6 +315,13 @@ export default {
}
},
SubId: 'u32',
TransientValidationData: {
maxCodeSize: 'u32',
maxHeadDataSize: 'u32',
balance: 'Balance',
codeUpgradeAllowed: 'Option<BlockNumber>',
dmqLength: 'u32'
},
UpwardMessage: 'Bytes',
ValidationFunctionParams: {
maxCodeSize: 'u32',
@@ -195,6 +329,11 @@ export default {
codeUpgradeAllowed: 'Option<RelayChainBlockNumber>'
},
ValidationCode: 'Bytes',
ValidationData: {
persisted: 'PersistedValidationData',
transient: 'TransientValidationData'
},
ValidatorGroup: 'Vec<ValidatorIndex>',
ValidatorSignature: 'Signature',
ValidityAttestation: {
_enum: {
@@ -203,7 +342,215 @@ export default {
Explicit: 'ValidatorSignature'
}
},
VersionedXcm: {
_enum: {
V0: 'Xcm'
}
},
WinningData: `[WinningDataEntry; ${SLOT_RANGE_COUNT}]`,
WinningDataEntry: 'Option<Bidder>'
WinningDataEntry: 'Option<Bidder>',
WithdrawAsset: {
assets: 'Vec<MultiAsset>',
effects: 'Vec<Order>'
},
ReserveAssetDeposit: {
assets: 'Vec<MultiAsset>',
effects: 'Vec<Order>'
},
TeleportAsset: {
assets: 'Vec<MultiAsset>',
effects: 'Vec<Order>'
},
Balances: {
queryId: 'Compact<u64>',
assets: 'Vec<MultiAsset>'
},
Transact: {
originType: 'OriginKind',
call: 'Vec<u8>'
},
RelayTo: {
dest: 'MultiLocation',
inner: 'VersionedXcm'
},
RelayedFrom: {
superorigin: 'MultiLocation',
inner: 'VersionedXcm'
},
Xcm: {
_enum: {
WithdrawAsset: 'WithdrawAsset',
ReserveAssetDeposit: 'ReserveAssetDeposit',
TeleportAsset: 'TeleportAsset',
Balances: 'Balances',
Transact: 'Transact',
RelayTo: 'RelayTo',
RelayedFrom: 'RelayedFrom'
}
},
XcmError: {
_enum: [
'Undefined',
'Unimplemented',
'UnhandledXcmVersion',
'UnhandledXcmMessage',
'UnhandledEffect',
'EscalationOfPrivilege',
'UntrustedReserveLocation',
'UntrustedTeleportLocation',
'DestinationBufferOverflow',
'CannotReachDestination',
'MultiLocationFull',
'FailedToDecode',
'BadOrigin'
]
},
XcmResult: {
_enum: {
Ok: '()',
Err: 'XcmError'
}
},
OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser']
},
NetworkId: {
_enum: {
Any: 'Null',
Named: 'Vec<u8>',
Polkadot: 'Null',
Kusama: 'Null'
}
},
MultiLocation: {
_enum: {
Null: 'Null',
X1: 'Junction',
X2: '(Junction, Junction)',
X3: '(Junction, Junction, Junction)',
X4: '(Junction, Junction, Junction, Junction)'
}
},
AccountId32Junction: {
network: 'NetworkId',
id: 'AccountId'
},
AccountIndex64Junction: {
network: 'NetworkId',
index: 'Compact<u64>'
},
AccountKey20Junction: {
network: 'NetworkId',
index: '[u8; 20]'
},
Junction: {
_enum: {
Parent: 'Null',
Parachain: 'Compact<u32>',
AccountId32: 'AccountId32Junction',
AccountIndex64: 'AccountIndex64Junction',
AccountKey20: 'AccountKey20Junction',
PalletInstance: 'u8',
GeneralIndex: 'Compact<u128>',
GeneralKey: 'Vec<u8>',
OnlyChild: 'Null'
}
},
VersionedMultiLocation: {
_enum: {
V0: 'MultiLocation'
}
},
AssetInstance: {
_enum: {
Undefined: 'Null',
Index8: 'u8',
Index16: 'Compact<u16>',
Index32: 'Compact<u32>',
Index64: 'Compact<u64>',
Index128: 'Compact<u128>',
Array4: '[u8; 4]',
Array8: '[u8; 8]',
Array16: '[u8; 16]',
Array32: '[u8; 32]',
Blob: 'Vec<u8>'
}
},
AbstractFungible: {
id: 'Vec<u8>',
instance: 'Compact<u128>'
},
AbstractNonFungible: {
class: 'Vec<u8>',
instance: 'AssetInstance'
},
ConcreteFungible: {
id: 'MultiLocation',
amount: 'Compact<u128>'
},
ConcreteNonFungible: {
class: 'MultiLocation',
instance: 'AssetInstance'
},
MultiAsset: {
_enum: {
None: 'Null',
All: 'Null',
AllFungible: 'Null',
AllNonFungible: 'Null',
AllAbstractFungible: 'Vec<u8>',
AllAbstractNonFungible: 'Vec<u8>',
AllConcreteFungible: 'MultiLocation',
AllConcreteNonFungible: 'MultiLocation',
AbstractFungible: 'AbstractFungible',
AbstractNonFungible: 'AbstractNonFungible',
ConcreteFungible: 'ConcreteFungible',
ConcreteNonFungible: 'ConcreteNonFungible'
}
},
VersionedMultiAsset: {
_enum: {
V0: 'MultiAsset'
}
},
DepositAsset: {
assets: 'Vec<MultiAsset>',
dest: 'MultiLocation'
},
DepositReserveAsset: {
assets: 'Vec<MultiAsset>',
dest: 'MultiLocation',
effects: 'Vec<Order>'
},
ExchangeAsset: {
give: 'Vec<MultiAsset>',
receive: 'Vec<MultiAsset>'
},
InitiateReserveWithdraw: {
assets: 'Vec<MultiAsset>',
reserve: 'MultiLocation',
effects: 'Vec<Order>'
},
InitiateTeleport: {
assets: 'Vec<MultiAsset>',
dest: 'MultiLocation',
effects: 'Vec<Order>'
},
QueryHolding: {
query_id: 'Compact<u64>',
dest: 'MultiLocation',
assets: 'Vec<MultiAsset>'
},
Order: {
_enum: {
Null: 'Null',
DepositAsset: 'DepositAsset',
DepositReserveAsset: 'DepositReserveAsset',
ExchangeAsset: 'ExchangeAsset',
InitiateReserveWithdraw: 'InitiateReserveWithdraw',
InitiateTeleport: 'InitiateTeleport',
QueryHolding: 'QueryHolding'
}
}
}
} as Definitions;
+499 -11
View File
@@ -1,11 +1,12 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, u32 } from '@polkadot/types';
import type { BitVec, Bytes, Compact, Enum, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
import type { ITuple } from '@polkadot/types/types';
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
import type { AccountId, Balance, BlockNumber, Hash, ValidatorId } from '@polkadot/types/interfaces/runtime';
import type { AccountId, Balance, BlockNumber, Hash, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
/** @name AbridgedCandidateReceipt */
export interface AbridgedCandidateReceipt extends Struct {
@@ -18,6 +19,71 @@ export interface AbridgedCandidateReceipt extends Struct {
readonly commitments: CandidateCommitments;
}
/** @name AbstractFungible */
export interface AbstractFungible extends Struct {
readonly id: Bytes;
readonly instance: Compact<u128>;
}
/** @name AbstractNonFungible */
export interface AbstractNonFungible extends Struct {
readonly class: Bytes;
readonly instance: AssetInstance;
}
/** @name AccountId32Junction */
export interface AccountId32Junction extends Struct {
readonly network: NetworkId;
readonly id: AccountId;
}
/** @name AccountIndex64Junction */
export interface AccountIndex64Junction extends Struct {
readonly network: NetworkId;
readonly index: Compact<u64>;
}
/** @name AccountKey20Junction */
export interface AccountKey20Junction extends Struct {
readonly network: NetworkId;
readonly index: U8aFixed;
}
/** @name AssetInstance */
export interface AssetInstance extends Enum {
readonly isUndefined: boolean;
readonly isIndex8: boolean;
readonly asIndex8: u8;
readonly isIndex16: boolean;
readonly asIndex16: Compact<u16>;
readonly isIndex32: boolean;
readonly asIndex32: Compact<u32>;
readonly isIndex64: boolean;
readonly asIndex64: Compact<u64>;
readonly isIndex128: boolean;
readonly asIndex128: Compact<u128>;
readonly isArray4: boolean;
readonly asArray4: U8aFixed;
readonly isArray8: boolean;
readonly asArray8: U8aFixed;
readonly isArray16: boolean;
readonly asArray16: U8aFixed;
readonly isArray32: boolean;
readonly asArray32: U8aFixed;
readonly isBlob: boolean;
readonly asBlob: Bytes;
}
/** @name AssignmentId */
export interface AssignmentId extends AccountId {}
/** @name AssignmentKind */
export interface AssignmentKind extends Enum {
readonly isParachain: boolean;
readonly isParathread: boolean;
readonly asParathread: ITuple<[CollatorId, u32]>;
}
/** @name AttestedCandidate */
export interface AttestedCandidate extends Struct {
readonly candidate: AbridgedCandidateReceipt;
@@ -28,6 +94,18 @@ export interface AttestedCandidate extends Struct {
/** @name AuctionIndex */
export interface AuctionIndex extends u32 {}
/** @name AuthorityDiscoveryId */
export interface AuthorityDiscoveryId extends AccountId {}
/** @name AvailabilityBitfield */
export interface AvailabilityBitfield extends BitVec {}
/** @name AvailabilityBitfieldRecord */
export interface AvailabilityBitfieldRecord extends Struct {
readonly bitfield: AvailabilityBitfield;
readonly submittedTt: BlockNumber;
}
/** @name BackedCandidate */
export interface BackedCandidate extends Struct {
readonly candidate: CommittedCandidateReceipt;
@@ -35,6 +113,12 @@ export interface BackedCandidate extends Struct {
readonly validatorIndices: BitVec;
}
/** @name Balances */
export interface Balances extends Struct {
readonly queryId: Compact<u64>;
readonly assets: Vec<MultiAsset>;
}
/** @name Bidder */
export interface Bidder extends Enum {
readonly isNew: boolean;
@@ -43,6 +127,14 @@ export interface Bidder extends Enum {
readonly asExisting: ParaId;
}
/** @name BufferedSessionChange */
export interface BufferedSessionChange extends Struct {
readonly applyAt: BlockNumber;
readonly validators: Vec<ValidatorId>;
readonly queued: Vec<ValidatorId>;
readonly sessionIndex: SessionIndex;
}
/** @name CandidateCommitments */
export interface CandidateCommitments extends Struct {
readonly upwardMessages: Vec<UpwardMessage>;
@@ -55,7 +147,7 @@ export interface CandidateCommitments extends Struct {
/** @name CandidateDescriptor */
export interface CandidateDescriptor extends Struct {
readonly paraId: u32;
readonly paraId: ParaId;
readonly relayParent: Hash;
readonly collatorId: Hash;
readonly persistedValidationDataHash: Hash;
@@ -64,11 +156,16 @@ export interface CandidateDescriptor extends Struct {
readonly signature: Signature;
}
/** @name CandidatePendingAvailablility */
export interface CandidatePendingAvailablility extends Struct {
readonly core: u32;
/** @name CandidateHash */
export interface CandidateHash extends Hash {}
/** @name CandidatePendingAvailability */
export interface CandidatePendingAvailability extends Struct {
readonly core: CoreIndex;
readonly hash: CandidateHash;
readonly descriptor: CandidateDescriptor;
readonly availabilityVotes: BitVec;
readonly backers: BitVec;
readonly relayParentNumber: BlockNumber;
readonly backedInNumber: BlockNumber;
}
@@ -91,6 +188,49 @@ export interface CommittedCandidateReceipt extends Struct {
readonly commitments: CandidateCommitments;
}
/** @name ConcreteFungible */
export interface ConcreteFungible extends Struct {
readonly id: MultiLocation;
readonly amount: Compact<u128>;
}
/** @name ConcreteNonFungible */
export interface ConcreteNonFungible extends Struct {
readonly class: MultiLocation;
readonly instance: AssetInstance;
}
/** @name CoreAssignment */
export interface CoreAssignment extends Struct {
readonly core: CoreIndex;
readonly paraId: ParaId;
readonly kind: AssignmentKind;
readonly groupIdx: GroupIndex;
}
/** @name CoreIndex */
export interface CoreIndex extends u32 {}
/** @name CoreOccupied */
export interface CoreOccupied extends Enum {
readonly isParathread: boolean;
readonly asParathread: ParathreadEntry;
readonly isParachain: boolean;
}
/** @name DepositAsset */
export interface DepositAsset extends Struct {
readonly assets: Vec<MultiAsset>;
readonly dest: MultiLocation;
}
/** @name DepositReserveAsset */
export interface DepositReserveAsset extends Struct {
readonly assets: Vec<MultiAsset>;
readonly dest: MultiLocation;
readonly effects: Vec<Order>;
}
/** @name DoubleVoteReport */
export interface DoubleVoteReport extends Struct {
readonly identity: ValidatorId;
@@ -101,11 +241,12 @@ export interface DoubleVoteReport extends Struct {
}
/** @name DownwardMessage */
export interface DownwardMessage extends Enum {
readonly isTransferInto: boolean;
readonly asTransferInto: ITuple<[AccountId, Balance, Remark]>;
readonly isOpaque: boolean;
readonly asOpaque: Bytes;
export interface DownwardMessage extends Bytes {}
/** @name ExchangeAsset */
export interface ExchangeAsset extends Struct {
readonly give: Vec<MultiAsset>;
readonly receive: Vec<MultiAsset>;
}
/** @name GlobalValidationSchedule */
@@ -115,15 +256,92 @@ export interface GlobalValidationSchedule extends Struct {
readonly blockNumber: BlockNumber;
}
/** @name GroupIndex */
export interface GroupIndex extends u32 {}
/** @name HeadData */
export interface HeadData extends Bytes {}
/** @name HostConfiguration */
export interface HostConfiguration extends Struct {
readonly validationUpgradeFrequency: BlockNumber;
readonly validationUpgradeDelay: BlockNumber;
readonly acceptancePeriod: BlockNumber;
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
readonly maxPovSize: u32;
readonly parathreadCores: u32;
readonly parathreadRetries: u32;
readonly groupRotationFrequency: BlockNumber;
readonly chainAvailabilityPeriod: BlockNumber;
readonly threadAvailabilityPeriod: BlockNumber;
readonly schedulingLookahead: u32;
readonly maxValidatorsPerCore: Option<u32>;
readonly disputePeriod: SessionIndex;
readonly noShowSlots: u32;
readonly nDelayTranches: u32;
readonly zerothDelayTrancheWidth: u32;
readonly neededApprovals: u32;
readonly relayVrfModuloSamples: u32;
readonly maxUpwardQueueCount: u32;
readonly maxUpwardQueueSize: u32;
readonly maxDownwardMessageSize: u32;
readonly preferredDispatchableUpwardMessagesStepWeight: Weight;
readonly maxUpwardMessageSize: u32;
readonly maxUpwardMessageNumPerCandidate: u32;
readonly hrmpOpenRequestTtl: u32;
readonly hrmpSenderDeposit: Balance;
readonly hrmpRecipientDeposit: Balance;
readonly hrmpChannelMaxCapacity: u32;
readonly hrmpChannelMaxTotalSize: u32;
readonly hrmpMaxParachainInboundChannels: u32;
readonly hrmpMaxParathreadInboundChannels: u32;
readonly hrmpChannelMaxMessageSize: u32;
readonly hrmpMaxParachainOutboundChannels: u32;
readonly hrmpMaxParathreadOutboundChannels: u32;
readonly hrmpMaxMessageNumPerCandidate: u32;
}
/** @name HrmpChannel */
export interface HrmpChannel extends Struct {
readonly senderDeposit: Balance;
readonly recipientDeposit: Balance;
readonly maxCapacity: u32;
readonly maxTotalSize: u32;
readonly max_MessageSize: u32;
readonly msgCount: u32;
readonly totalSize: u32;
readonly mqcHead: Option<Hash>;
}
/** @name HrmpChannelId */
export interface HrmpChannelId extends Struct {
readonly sender: u32;
readonly receiver: u32;
}
/** @name HrmpOpenChannelRequest */
export interface HrmpOpenChannelRequest extends Struct {
readonly confirmed: bool;
readonly age: SessionIndex;
readonly senderDeposit: Balance;
readonly maxMessageSize: u32;
readonly maxCapacity: u32;
readonly maxTotalSize: u32;
}
/** @name InboundDownwardMessage */
export interface InboundDownwardMessage extends Struct {
readonly pubSentAt: BlockNumber;
readonly pubMsg: DownwardMessage;
}
/** @name InboundHrmpMessage */
export interface InboundHrmpMessage extends Struct {
readonly sentAt: BlockNumber;
readonly data: Bytes;
}
/** @name IncomingParachain */
export interface IncomingParachain extends Enum {
readonly isUnset: boolean;
@@ -147,6 +365,40 @@ export interface IncomingParachainFixed extends Struct {
readonly initialHeadData: HeadData;
}
/** @name InitiateReserveWithdraw */
export interface InitiateReserveWithdraw extends Struct {
readonly assets: Vec<MultiAsset>;
readonly reserve: MultiLocation;
readonly effects: Vec<Order>;
}
/** @name InitiateTeleport */
export interface InitiateTeleport extends Struct {
readonly assets: Vec<MultiAsset>;
readonly dest: MultiLocation;
readonly effects: Vec<Order>;
}
/** @name Junction */
export interface Junction extends Enum {
readonly isParent: boolean;
readonly isParachain: boolean;
readonly asParachain: Compact<u32>;
readonly isAccountId32: boolean;
readonly asAccountId32: AccountId32Junction;
readonly isAccountIndex64: boolean;
readonly asAccountIndex64: AccountIndex64Junction;
readonly isAccountKey20: boolean;
readonly asAccountKey20: AccountKey20Junction;
readonly isPalletInstance: boolean;
readonly asPalletInstance: u8;
readonly isGeneralIndex: boolean;
readonly asGeneralIndex: Compact<u128>;
readonly isGeneralKey: boolean;
readonly asGeneralKey: Bytes;
readonly isOnlyChild: boolean;
}
/** @name LeasePeriod */
export interface LeasePeriod extends BlockNumber {}
@@ -160,12 +412,82 @@ export interface LocalValidationData extends Struct {
readonly codeUpgradeAllowed: Option<BlockNumber>;
}
/** @name MultiAsset */
export interface MultiAsset extends Enum {
readonly isNone: boolean;
readonly isAll: boolean;
readonly isAllFungible: boolean;
readonly isAllNonFungible: boolean;
readonly isAllAbstractFungible: boolean;
readonly asAllAbstractFungible: Bytes;
readonly isAllAbstractNonFungible: boolean;
readonly asAllAbstractNonFungible: Bytes;
readonly isAllConcreteFungible: boolean;
readonly asAllConcreteFungible: MultiLocation;
readonly isAllConcreteNonFungible: boolean;
readonly asAllConcreteNonFungible: MultiLocation;
readonly isAbstractFungible: boolean;
readonly asAbstractFungible: AbstractFungible;
readonly isAbstractNonFungible: boolean;
readonly asAbstractNonFungible: AbstractNonFungible;
readonly isConcreteFungible: boolean;
readonly asConcreteFungible: ConcreteFungible;
readonly isConcreteNonFungible: boolean;
readonly asConcreteNonFungible: ConcreteNonFungible;
}
/** @name MultiLocation */
export interface MultiLocation extends Enum {
readonly isNull: boolean;
readonly isX1: boolean;
readonly asX1: Junction;
readonly isX2: boolean;
readonly asX2: ITuple<[Junction, Junction]>;
readonly isX3: boolean;
readonly asX3: ITuple<[Junction, Junction, Junction]>;
readonly isX4: boolean;
readonly asX4: ITuple<[Junction, Junction, Junction, Junction]>;
}
/** @name NetworkId */
export interface NetworkId extends Enum {
readonly isAny: boolean;
readonly isNamed: boolean;
readonly asNamed: Bytes;
readonly isPolkadot: boolean;
readonly isKusama: boolean;
}
/** @name NewBidder */
export interface NewBidder extends Struct {
readonly who: AccountId;
readonly sub: SubId;
}
/** @name Order */
export interface Order extends Enum {
readonly isNull: boolean;
readonly isDepositAsset: boolean;
readonly asDepositAsset: DepositAsset;
readonly isDepositReserveAsset: boolean;
readonly asDepositReserveAsset: DepositReserveAsset;
readonly isExchangeAsset: boolean;
readonly asExchangeAsset: ExchangeAsset;
readonly isInitiateReserveWithdraw: boolean;
readonly asInitiateReserveWithdraw: InitiateReserveWithdraw;
readonly isInitiateTeleport: boolean;
readonly asInitiateTeleport: InitiateTeleport;
readonly isQueryHolding: boolean;
readonly asQueryHolding: QueryHolding;
}
/** @name OriginKind */
export interface OriginKind extends Enum {
readonly isNative: boolean;
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
}
/** @name OutboundHrmpMessage */
export interface OutboundHrmpMessage extends Struct {
readonly recipient: u32;
@@ -209,6 +531,43 @@ export interface ParaScheduling extends Enum {
readonly isDynamic: boolean;
}
/** @name ParathreadClaim */
export interface ParathreadClaim extends ITuple<[ParaId, CollatorId]> {}
/** @name ParathreadClaimQueue */
export interface ParathreadClaimQueue extends Struct {
readonly queue: Vec<QueuedParathread>;
readonly nextCoreOffset: u32;
}
/** @name ParathreadEntry */
export interface ParathreadEntry extends Struct {
readonly claim: ParathreadClaim;
readonly retries: u32;
}
/** @name PersistedValidationData */
export interface PersistedValidationData extends Struct {
readonly parentHead: HeadData;
readonly blockNumber: BlockNumber;
readonly hrmpMqcHeads: Vec<ITuple<[u32, Hash]>>;
readonly dmqMqcHead: Hash;
readonly maxPovSize: u32;
}
/** @name QueryHolding */
export interface QueryHolding extends Struct {
readonly query_id: Compact<u64>;
readonly dest: MultiLocation;
readonly assets: Vec<MultiAsset>;
}
/** @name QueuedParathread */
export interface QueuedParathread extends Struct {
readonly claim: ParathreadEntry;
readonly coreOffset: u32;
}
/** @name RegisteredParachainInfo */
export interface RegisteredParachainInfo extends Struct {
readonly validators: Vec<ValidatorId>;
@@ -218,9 +577,27 @@ export interface RegisteredParachainInfo extends Struct {
/** @name RelayChainBlockNumber */
export interface RelayChainBlockNumber extends BlockNumber {}
/** @name RelayedFrom */
export interface RelayedFrom extends Struct {
readonly superorigin: MultiLocation;
readonly inner: VersionedXcm;
}
/** @name RelayTo */
export interface RelayTo extends Struct {
readonly dest: MultiLocation;
readonly inner: VersionedXcm;
}
/** @name Remark */
export interface Remark extends U8aFixed {}
/** @name ReserveAssetDeposit */
export interface ReserveAssetDeposit extends Struct {
readonly assets: Vec<MultiAsset>;
readonly effects: Vec<Order>;
}
/** @name Retriable */
export interface Retriable extends Enum {
readonly isNever: boolean;
@@ -234,6 +611,20 @@ export interface Scheduling extends Enum {
readonly isDynamic: boolean;
}
/** @name SessionInfo */
export interface SessionInfo extends Struct {
readonly validators: Vec<ValidatorId>;
readonly discoveryKeys: Vec<AuthorityDiscoveryId>;
readonly assignmentKeys: Vec<AssignmentId>;
readonly validatorGroups: Vec<ValidatorGroup>;
readonly nCores: u32;
readonly zerothDelayTrancheWidth: u32;
readonly relayVrfModuloSamples: u32;
readonly nDelayTranches: u32;
readonly noShowSlots: u32;
readonly neededApprovals: u32;
}
/** @name SignedAvailabilityBitfield */
export interface SignedAvailabilityBitfield extends Struct {
readonly payload: BitVec;
@@ -278,12 +669,39 @@ export interface Statement extends Enum {
/** @name SubId */
export interface SubId extends u32 {}
/** @name TeleportAsset */
export interface TeleportAsset extends Struct {
readonly assets: Vec<MultiAsset>;
readonly effects: Vec<Order>;
}
/** @name Transact */
export interface Transact extends Struct {
readonly originType: OriginKind;
readonly call: Bytes;
}
/** @name TransientValidationData */
export interface TransientValidationData extends Struct {
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
readonly balance: Balance;
readonly codeUpgradeAllowed: Option<BlockNumber>;
readonly dmqLength: u32;
}
/** @name UpwardMessage */
export interface UpwardMessage extends Bytes {}
/** @name ValidationCode */
export interface ValidationCode extends Bytes {}
/** @name ValidationData */
export interface ValidationData extends Struct {
readonly persisted: PersistedValidationData;
readonly transient: TransientValidationData;
}
/** @name ValidationFunctionParams */
export interface ValidationFunctionParams extends Struct {
readonly maxCodeSize: u32;
@@ -291,6 +709,9 @@ export interface ValidationFunctionParams extends Struct {
readonly codeUpgradeAllowed: Option<RelayChainBlockNumber>;
}
/** @name ValidatorGroup */
export interface ValidatorGroup extends Vec<ValidatorIndex> {}
/** @name ValidatorSignature */
export interface ValidatorSignature extends Signature {}
@@ -303,10 +724,77 @@ export interface ValidityAttestation extends Enum {
readonly asExplicit: ValidatorSignature;
}
/** @name VersionedMultiAsset */
export interface VersionedMultiAsset extends Enum {
readonly isV0: boolean;
readonly asV0: MultiAsset;
}
/** @name VersionedMultiLocation */
export interface VersionedMultiLocation extends Enum {
readonly isV0: boolean;
readonly asV0: MultiLocation;
}
/** @name VersionedXcm */
export interface VersionedXcm extends Enum {
readonly isV0: boolean;
readonly asV0: Xcm;
}
/** @name WinningData */
export interface WinningData extends Vec<WinningDataEntry> {}
/** @name WinningDataEntry */
export interface WinningDataEntry extends Option<Bidder> {}
/** @name WithdrawAsset */
export interface WithdrawAsset extends Struct {
readonly assets: Vec<MultiAsset>;
readonly effects: Vec<Order>;
}
/** @name Xcm */
export interface Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: WithdrawAsset;
readonly isReserveAssetDeposit: boolean;
readonly asReserveAssetDeposit: ReserveAssetDeposit;
readonly isTeleportAsset: boolean;
readonly asTeleportAsset: TeleportAsset;
readonly isBalances: boolean;
readonly asBalances: Balances;
readonly isTransact: boolean;
readonly asTransact: Transact;
readonly isRelayTo: boolean;
readonly asRelayTo: RelayTo;
readonly isRelayedFrom: boolean;
readonly asRelayedFrom: RelayedFrom;
}
/** @name XcmError */
export interface XcmError extends Enum {
readonly isUndefined: boolean;
readonly isUnimplemented: boolean;
readonly isUnhandledXcmVersion: boolean;
readonly isUnhandledXcmMessage: boolean;
readonly isUnhandledEffect: boolean;
readonly isEscalationOfPrivilege: boolean;
readonly isUntrustedReserveLocation: boolean;
readonly isUntrustedTeleportLocation: boolean;
readonly isDestinationBufferOverflow: boolean;
readonly isCannotReachDestination: boolean;
readonly isMultiLocationFull: boolean;
readonly isFailedToDecode: boolean;
readonly isBadOrigin: boolean;
}
/** @name XcmResult */
export interface XcmResult extends Enum {
readonly isOk: boolean;
readonly asOk: ITuple<[]>;
readonly isErr: boolean;
readonly asErr: XcmError;
}
export type PHANTOM_PARACHAINS = 'parachains';
View File
+4
View File
@@ -1 +1,5 @@
# @polkadot/x-rxjs
This is a small wrapper around rjx to make it friendly to both Node.js (from .mjs as well as .cjs) as well as bundlers using both esm and cjs modules.
This need wil disappear, once rxjs supports export maps.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-rxjs",
"version": "3.0.1",
"version": "3.1.1",
"description": "A pass-through interface for RxJs (allowing node + mjs usage)",
"main": "index.js",
"sideEffects": false,
+74
View File
@@ -0,0 +1,74 @@
// Copyright 2017-2020 @polkadot/x-rxjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
// This is not great, but while having esm files, rxjs doesn't quite play nicely with
// Node.js mjs files. (Hopefully this improves in 7.0, although no exports map as of yet)
//
// Generated via s/export \{ (.*) \} from .*/exports.$1 = rxjs.$1;/ on rxjs/_esm
// This is or our builder
// @polkadot/dev: exports-node
const rxjs = require('rxjs');
exports.Observable = rxjs.Observable;
exports.ConnectableObservable = rxjs.ConnectableObservable;
exports.GroupedObservable = rxjs.GroupedObservable;
exports.observable = rxjs.observable;
exports.Subject = rxjs.Subject;
exports.BehaviorSubject = rxjs.BehaviorSubject;
exports.ReplaySubject = rxjs.ReplaySubject;
exports.AsyncSubject = rxjs.AsyncSubject;
exports.asap = rxjs.asap;
exports.asapScheduler = rxjs.asapScheduler;
exports.async = rxjs.async;
exports.asyncScheduler = rxjs.asyncScheduler;
exports.queue = rxjs.queue;
exports.queueScheduler = rxjs.queueScheduler;
exports.animationFrame = rxjs.animationFrame;
exports.animationFrameScheduler = rxjs.animationFrameScheduler;
exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler;
exports.VirtualAction = rxjs.VirtualAction;
exports.Scheduler = rxjs.Scheduler;
exports.Subscription = rxjs.Subscription;
exports.Subscriber = rxjs.Subscriber;
exports.Notification = rxjs.Notification;
exports.NotificationKind = rxjs.NotificationKind;
exports.pipe = rxjs.pipe;
exports.noop = rxjs.noop;
exports.identity = rxjs.identity;
exports.isObservable = rxjs.isObservable;
exports.ArgumentOutOfRangeError = rxjs.ArgumentOutOfRangeError;
exports.EmptyError = rxjs.EmptyError;
exports.ObjectUnsubscribedError = rxjs.ObjectUnsubscribedError;
exports.UnsubscriptionError = rxjs.UnsubscriptionError;
exports.TimeoutError = rxjs.TimeoutError;
exports.bindCallback = rxjs.bindCallback;
exports.bindNodeCallback = rxjs.bindNodeCallback;
exports.combineLatest = rxjs.combineLatest;
exports.concat = rxjs.concat;
exports.defer = rxjs.defer;
exports.empty = rxjs.empty;
exports.forkJoin = rxjs.forkJoin;
exports.from = rxjs.from;
exports.fromEvent = rxjs.fromEvent;
exports.fromEventPattern = rxjs.fromEventPattern;
exports.generate = rxjs.generate;
exports.iif = rxjs.iif;
exports.interval = rxjs.interval;
exports.merge = rxjs.merge;
exports.never = rxjs.never;
exports.of = rxjs.of;
exports.onErrorResumeNext = rxjs.onErrorResumeNext;
exports.pairs = rxjs.pairs;
exports.partition = rxjs.partition;
exports.race = rxjs.race;
exports.range = rxjs.range;
exports.throwError = rxjs.throwError;
exports.timer = rxjs.timer;
exports.using = rxjs.using;
exports.zip = rxjs.zip;
exports.scheduled = rxjs.scheduled;
exports.EMPTY = rxjs.EMPTY;
exports.NEVER = rxjs.NEVER;
exports.config = rxjs.config;
+4
View File
@@ -0,0 +1,4 @@
// Copyright 2017-2020 @polkadot/x-rxjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { animationFrame, animationFrameScheduler, ArgumentOutOfRangeError, asap, asapScheduler, async, asyncScheduler, AsyncSubject, BehaviorSubject, bindCallback, bindNodeCallback, combineLatest, concat, config, ConnectableObservable, defer, EMPTY, empty, EmptyError, forkJoin, from, fromEvent, fromEventPattern, generate, GroupedObservable, identity, iif, interval, isObservable, merge, NEVER, never, noop, Notification, NotificationKind, ObjectUnsubscribedError, Observable, observable, of, onErrorResumeNext, pairs, partition, pipe, queue, queueScheduler, race, range, ReplaySubject, scheduled, Scheduler, Subject, Subscriber, Subscription, throwError, TimeoutError, timer, UnsubscriptionError, using, VirtualAction, VirtualTimeScheduler, zip } from 'rxjs/_esm5/index.js';
+117
View File
@@ -0,0 +1,117 @@
// Copyright 2017-2020 @polkadot/x-rxjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
// This is not great, but while having esm files, rxjs doesn't quite play nicely with
// Node.js mjs files. (Hopefully this improves in 7.0, although no exports map as of yet)
//
// Generated via s/export \{ (.*) \} from .*/exports.$1 = rxjs.$1;/ on rxjs/_esm
// This is or our builder, to add the correct exports entry
// @polkadot/dev: exports-node
const operators = require('rxjs/operators');
exports.audit = operators.audit;
exports.auditTime = operators.auditTime;
exports.buffer = operators.buffer;
exports.bufferCount = operators.bufferCount;
exports.bufferTime = operators.bufferTime;
exports.bufferToggle = operators.bufferToggle;
exports.bufferWhen = operators.bufferWhen;
exports.catchError = operators.catchError;
exports.combineAll = operators.combineAll;
exports.combineLatest = operators.combineLatest;
exports.concat = operators.concat;
exports.concatAll = operators.concatAll;
exports.concatMap = operators.concatMap;
exports.concatMapTo = operators.concatMapTo;
exports.count = operators.count;
exports.debounce = operators.debounce;
exports.debounceTime = operators.debounceTime;
exports.defaultIfEmpty = operators.defaultIfEmpty;
exports.delay = operators.delay;
exports.delayWhen = operators.delayWhen;
exports.dematerialize = operators.dematerialize;
exports.distinct = operators.distinct;
exports.distinctUntilChanged = operators.distinctUntilChanged;
exports.distinctUntilKeyChanged = operators.distinctUntilKeyChanged;
exports.elementAt = operators.elementAt;
exports.endWith = operators.endWith;
exports.every = operators.every;
exports.exhaust = operators.exhaust;
exports.exhaustMap = operators.exhaustMap;
exports.expand = operators.expand;
exports.filter = operators.filter;
exports.finalize = operators.finalize;
exports.find = operators.find;
exports.findIndex = operators.findIndex;
exports.first = operators.first;
exports.groupBy = operators.groupBy;
exports.ignoreElements = operators.ignoreElements;
exports.isEmpty = operators.isEmpty;
exports.last = operators.last;
exports.map = operators.map;
exports.mapTo = operators.mapTo;
exports.materialize = operators.materialize;
exports.max = operators.max;
exports.merge = operators.merge;
exports.mergeAll = operators.mergeAll;
exports.mergeMap = operators.mergeMap;
exports.flatMap = operators.flatMap;
exports.mergeMapTo = operators.mergeMapTo;
exports.mergeScan = operators.mergeScan;
exports.min = operators.min;
exports.multicast = operators.multicast;
exports.observeOn = operators.observeOn;
exports.onErrorResumeNext = operators.onErrorResumeNext;
exports.pairwise = operators.pairwise;
exports.partition = operators.partition;
exports.pluck = operators.pluck;
exports.publish = operators.publish;
exports.publishBehavior = operators.publishBehavior;
exports.publishLast = operators.publishLast;
exports.publishReplay = operators.publishReplay;
exports.race = operators.race;
exports.reduce = operators.reduce;
exports.repeat = operators.repeat;
exports.repeatWhen = operators.repeatWhen;
exports.retry = operators.retry;
exports.retryWhen = operators.retryWhen;
exports.refCount = operators.refCount;
exports.sample = operators.sample;
exports.sampleTime = operators.sampleTime;
exports.scan = operators.scan;
exports.sequenceEqual = operators.sequenceEqual;
exports.share = operators.share;
exports.shareReplay = operators.shareReplay;
exports.single = operators.single;
exports.skip = operators.skip;
exports.skipLast = operators.skipLast;
exports.skipUntil = operators.skipUntil;
exports.skipWhile = operators.skipWhile;
exports.startWith = operators.startWith;
exports.subscribeOn = operators.subscribeOn;
exports.switchAll = operators.switchAll;
exports.switchMap = operators.switchMap;
exports.switchMapTo = operators.switchMapTo;
exports.take = operators.take;
exports.takeLast = operators.takeLast;
exports.takeUntil = operators.takeUntil;
exports.takeWhile = operators.takeWhile;
exports.tap = operators.tap;
exports.throttle = operators.throttle;
exports.throttleTime = operators.throttleTime;
exports.throwIfEmpty = operators.throwIfEmpty;
exports.timeInterval = operators.timeInterval;
exports.timeout = operators.timeout;
exports.timeoutWith = operators.timeoutWith;
exports.timestamp = operators.timestamp;
exports.toArray = operators.toArray;
exports.window = operators.window;
exports.windowCount = operators.windowCount;
exports.windowTime = operators.windowTime;
exports.windowToggle = operators.windowToggle;
exports.windowWhen = operators.windowWhen;
exports.withLatestFrom = operators.withLatestFrom;
exports.zip = operators.zip;
exports.zipAll = operators.zipAll;
+4
View File
@@ -0,0 +1,4 @@
// Copyright 2017-2020 @polkadot/x-rxjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { audit, auditTime, buffer, bufferCount, bufferTime, bufferToggle, bufferWhen, catchError, combineAll, combineLatest, concat, concatAll, concatMap, concatMapTo, count, debounce, debounceTime, defaultIfEmpty, delay, delayWhen, dematerialize, distinct, distinctUntilChanged, distinctUntilKeyChanged, elementAt, endWith, every, exhaust, exhaustMap, expand, filter, finalize, find, findIndex, first, flatMap, groupBy, ignoreElements, isEmpty, last, map, mapTo, materialize, max, merge, mergeAll, mergeMap, mergeMapTo, mergeScan, min, multicast, observeOn, onErrorResumeNext, pairwise, partition, pluck, publish, publishBehavior, publishLast, publishReplay, race, reduce, refCount, repeat, repeatWhen, retry, retryWhen, sample, sampleTime, scan, sequenceEqual, share, shareReplay, single, skip, skipLast, skipUntil, skipWhile, startWith, subscribeOn, switchAll, switchMap, switchMapTo, take, takeLast, takeUntil, takeWhile, tap, throttle, throttleTime, throwIfEmpty, timeInterval, timeout, timeoutWith, timestamp, toArray, window, windowCount, windowTime, windowToggle, windowWhen, withLatestFrom, zip, zipAll } from 'rxjs/_esm5/operators/index.js';
+3
View File
@@ -10,18 +10,21 @@
"paths":
{
"@polkadot/api": ["packages/api/src"],
"@polkadot/api/package-info.json": ["packages/api/package.json"],
"@polkadot/api/*": ["packages/api/src/*"],
"@polkadot/api-contract": ["packages/api-contract/src"],
"@polkadot/api-contract/*": ["packages/api-contract/src/*"],
"@polkadot/api-derive": ["packages/api-derive/src"],
"@polkadot/api-derive/*": ["packages/api-derive/src/*"],
"@polkadot/metadata": ["packages/metadata/src"],
"@polkadot/metadata/package-info.json": ["packages/metadata/package.json"],
"@polkadot/metadata/*": ["packages/metadata/src/*"],
"@polkadot/rpc-core": ["packages/rpc-core/src"],
"@polkadot/rpc-core/*": ["packages/rpc-core/src/*"],
"@polkadot/rpc-provider": ["packages/rpc-provider/src"],
"@polkadot/rpc-provider/*": ["packages/rpc-provider/src/*"],
"@polkadot/types": ["packages/types/src"],
"@polkadot/types/package-info.json": ["packages/types/package.json"],
"@polkadot/types/*": ["packages/types/src/*"],
"@polkadot/types-known": ["packages/types-known/src"],
"@polkadot/types-known/*": ["packages/types-known/src/*"],
+204 -212
View File
@@ -314,17 +314,17 @@ __metadata:
languageName: node
linkType: hard
"@babel/helper-validator-identifier@npm:^7.10.4":
version: 7.10.4
resolution: "@babel/helper-validator-identifier@npm:7.10.4"
checksum: 25098ef842e3ffecdd9a7216f6173da7ad7be1b0b3e454a9f6965055154b9ad7a4acd2f218ba3d2efc0821bdab97837b3cb815844af7d72f66f89d446a54efc6
"@babel/helper-validator-identifier@npm:^7.10.4, @babel/helper-validator-identifier@npm:^7.12.11":
version: 7.12.11
resolution: "@babel/helper-validator-identifier@npm:7.12.11"
checksum: 18de432203264b501db2690b53370a4289dc56084f5a2c66de624b159ee28b8abaeb402b2b7584296d9261645d91ddb6bfd21125d3ffd9bf02e9262e77baf3d2
languageName: node
linkType: hard
"@babel/helper-validator-option@npm:^7.12.1":
version: 7.12.1
resolution: "@babel/helper-validator-option@npm:7.12.1"
checksum: 5d9a8f67500baf464151d15ca281388e7272ed22e3b909e13ccff89b2b4cc83a3e29972f9feaacb8a372e749028b252187982a59c6e6944ce30e0d15d905ab5c
"@babel/helper-validator-option@npm:^7.12.1, @babel/helper-validator-option@npm:^7.12.11":
version: 7.12.11
resolution: "@babel/helper-validator-option@npm:7.12.11"
checksum: c0a861e95f4f24ed59535c28206f62e639404db873473886ec77b50fef53e21111b4093522838927b79be768a885ad2007086b2434353b9d2b89b891ca14028a
languageName: node
linkType: hard
@@ -788,14 +788,14 @@ __metadata:
languageName: node
linkType: hard
"@babel/plugin-transform-block-scoping@npm:^7.12.1":
version: 7.12.1
resolution: "@babel/plugin-transform-block-scoping@npm:7.12.1"
"@babel/plugin-transform-block-scoping@npm:^7.12.11":
version: 7.12.11
resolution: "@babel/plugin-transform-block-scoping@npm:7.12.11"
dependencies:
"@babel/helper-plugin-utils": ^7.10.4
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 067f8b55a32ba53c7bc61e730f0a2dd063ee377afea88e153e9b8bd8069d666df3106b80777e37e418d14a21cabd1dee0f7dabfe8cb038d5080d9e332a202e36
checksum: 6bc227619d7890724eec691e53859914a5420be3f8225cc8901dc839aed05697014a241e81125c541a8b5f7ac2ffc639aab645ec26484ffba696eab2cb7c8c02
languageName: node
linkType: hard
@@ -1206,15 +1206,15 @@ __metadata:
languageName: node
linkType: hard
"@babel/preset-env@npm:^7.12.10":
version: 7.12.10
resolution: "@babel/preset-env@npm:7.12.10"
"@babel/preset-env@npm:^7.12.11":
version: 7.12.11
resolution: "@babel/preset-env@npm:7.12.11"
dependencies:
"@babel/compat-data": ^7.12.7
"@babel/helper-compilation-targets": ^7.12.5
"@babel/helper-module-imports": ^7.12.5
"@babel/helper-plugin-utils": ^7.10.4
"@babel/helper-validator-option": ^7.12.1
"@babel/helper-validator-option": ^7.12.11
"@babel/plugin-proposal-async-generator-functions": ^7.12.1
"@babel/plugin-proposal-class-properties": ^7.12.1
"@babel/plugin-proposal-dynamic-import": ^7.12.1
@@ -1243,7 +1243,7 @@ __metadata:
"@babel/plugin-transform-arrow-functions": ^7.12.1
"@babel/plugin-transform-async-to-generator": ^7.12.1
"@babel/plugin-transform-block-scoped-functions": ^7.12.1
"@babel/plugin-transform-block-scoping": ^7.12.1
"@babel/plugin-transform-block-scoping": ^7.12.11
"@babel/plugin-transform-classes": ^7.12.1
"@babel/plugin-transform-computed-properties": ^7.12.1
"@babel/plugin-transform-destructuring": ^7.12.1
@@ -1273,12 +1273,12 @@ __metadata:
"@babel/plugin-transform-unicode-escapes": ^7.12.1
"@babel/plugin-transform-unicode-regex": ^7.12.1
"@babel/preset-modules": ^0.1.3
"@babel/types": ^7.12.10
"@babel/types": ^7.12.11
core-js-compat: ^3.8.0
semver: ^5.5.0
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 1fe64a0943dac09eb0f19cdea8af8a9906e2ae65cacef3ad33847a012392b92d51c3152697da906e8397a3a1b9fa773bd28c05e54091078099d0193abf8d7d66
checksum: 2811bbf697d86d2d7d972215cf07e4b153cb667eefa2ca3521e0eb34c20d3f2643c44ed31734e1db35675267f5a3de284b87e543132f075c28c979b34af6472c
languageName: node
linkType: hard
@@ -1377,14 +1377,14 @@ __metadata:
languageName: node
linkType: hard
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.4, @babel/types@npm:^7.10.5, @babel/types@npm:^7.11.0, @babel/types@npm:^7.12.1, @babel/types@npm:^7.12.10, @babel/types@npm:^7.12.5, @babel/types@npm:^7.12.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3":
version: 7.12.10
resolution: "@babel/types@npm:7.12.10"
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.10.4, @babel/types@npm:^7.10.5, @babel/types@npm:^7.11.0, @babel/types@npm:^7.12.1, @babel/types@npm:^7.12.10, @babel/types@npm:^7.12.11, @babel/types@npm:^7.12.5, @babel/types@npm:^7.12.7, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3":
version: 7.12.11
resolution: "@babel/types@npm:7.12.11"
dependencies:
"@babel/helper-validator-identifier": ^7.10.4
"@babel/helper-validator-identifier": ^7.12.11
lodash: ^4.17.19
to-fast-properties: ^2.0.0
checksum: 4f791b6788397d38eba9d4ee7e019e2f88ab337ae331da69d6f4d5d5b26d40c25a47a92f2b0c2025cf856455728fa9d9a79bb046f6f998c491375453822ae2ea
checksum: e592c52b097da2c56f7388f35bf84a267c88e0e1bd7d3b7730892a8c70b2a80bd7f67a2ee57b2acf6aee58a074a234214d3e43ff6968dfb834733aa1417a5a43
languageName: node
linkType: hard
@@ -1691,54 +1691,54 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api": 3.0.1
"@polkadot/types": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/x-rxjs": 3.0.1
"@polkadot/api": 3.1.1
"@polkadot/types": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/x-rxjs": 3.1.1
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/api-derive@3.0.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@3.1.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": 3.0.1
"@polkadot/keyring": ^5.0.1
"@polkadot/rpc-core": 3.0.1
"@polkadot/rpc-provider": 3.0.1
"@polkadot/types": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/util-crypto": ^5.0.1
"@polkadot/x-rxjs": 3.0.1
"@polkadot/api": 3.1.1
"@polkadot/keyring": ^5.1.1
"@polkadot/rpc-core": 3.1.1
"@polkadot/rpc-provider": 3.1.1
"@polkadot/types": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/x-rxjs": 3.1.1
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/api@3.0.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@3.1.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": 3.0.1
"@polkadot/keyring": ^5.0.1
"@polkadot/metadata": 3.0.1
"@polkadot/rpc-core": 3.0.1
"@polkadot/rpc-provider": 3.0.1
"@polkadot/types": 3.0.1
"@polkadot/types-known": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/util-crypto": ^5.0.1
"@polkadot/x-rxjs": 3.0.1
"@polkadot/api-derive": 3.1.1
"@polkadot/keyring": ^5.1.1
"@polkadot/metadata": 3.1.1
"@polkadot/rpc-core": 3.1.1
"@polkadot/rpc-provider": 3.1.1
"@polkadot/types": 3.1.1
"@polkadot/types-known": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/x-rxjs": 3.1.1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.61.2":
version: 0.61.2
resolution: "@polkadot/dev@npm:0.61.2"
"@polkadot/dev@npm:^0.61.13":
version: 0.61.13
resolution: "@polkadot/dev@npm:0.61.13"
dependencies:
"@babel/cli": ^7.12.10
"@babel/core": ^7.12.10
@@ -1756,18 +1756,18 @@ __metadata:
"@babel/plugin-syntax-top-level-await": ^7.12.1
"@babel/plugin-transform-regenerator": ^7.12.1
"@babel/plugin-transform-runtime": ^7.12.10
"@babel/preset-env": ^7.12.10
"@babel/preset-env": ^7.12.11
"@babel/preset-react": ^7.12.10
"@babel/preset-typescript": ^7.12.7
"@babel/register": ^7.12.10
"@babel/runtime": ^7.12.5
"@rushstack/eslint-patch": ^1.0.6
"@typescript-eslint/eslint-plugin": 4.9.1
"@typescript-eslint/parser": 4.9.1
"@typescript-eslint/eslint-plugin": 4.10.0
"@typescript-eslint/parser": 4.10.0
"@vue/component-compiler-utils": ^3.2.0
babel-jest: ^26.6.3
babel-plugin-module-extension-resolver: ^1.0.0-rc.1
babel-plugin-module-resolver: ^4.0.0
babel-plugin-module-resolver: ^4.1.0
babel-plugin-styled-components: ^1.12.0
browserslist: ^4.16.0
chalk: ^4.1.0
@@ -1825,73 +1825,73 @@ __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: aada176bd714442e309941c42f0cf48466599aa1e0cbca894e00c91b6efd2eb6b11a677f1e607d46f3245a780934d5f0b4b4029ee2124e8d41cb5f6c96423b21
checksum: 2a38bf5128ec843c3cd61592d2840aa5af24f2dffbbc5553f59fa54c108b48b81bbf6df25c434d1fd5cd050358d103fd861742ce4435f60ec44a03910161c500
languageName: node
linkType: hard
"@polkadot/keyring@npm:^5.0.1":
version: 5.0.1
resolution: "@polkadot/keyring@npm:5.0.1"
"@polkadot/keyring@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/keyring@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/util": 5.0.1
"@polkadot/util-crypto": 5.0.1
"@polkadot/util": 5.1.1
"@polkadot/util-crypto": 5.1.1
peerDependencies:
"@polkadot/util": 5.0.1
"@polkadot/util-crypto": 5.0.1
checksum: 541d92a837274e90f66630b8110ceed6ccf817e34e0a4673b4893c9cd6185baec6132b01379f14832b9525404f7a32cfbfa259c752fe1ff746868e661c6fef3c
"@polkadot/util": 5.1.1
"@polkadot/util-crypto": 5.1.1
checksum: 03d4063c6455460b1e8695d3ef2efec212922ceb09ecefafd7bca171406c61089cc762fd5d2b347db00badae33fb5e7c778ee156425b982807f250807016980c
languageName: node
linkType: hard
"@polkadot/metadata@3.0.1, @polkadot/metadata@workspace:packages/metadata":
"@polkadot/metadata@3.1.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": ^5.0.1
"@polkadot/types": 3.0.1
"@polkadot/types-known": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/util-crypto": ^5.0.1
"@polkadot/keyring": ^5.1.1
"@polkadot/types": 3.1.1
"@polkadot/types-known": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/networks@npm:5.0.1":
version: 5.0.1
resolution: "@polkadot/networks@npm:5.0.1"
"@polkadot/networks@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/networks@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: 60583705fc3d01ae2d52224aa6bed55da170b2dcb745f45ca3202d5fad9cbfce0cf022592c3bce649197425a97e600315afc14440d517c4ec9e79cd37f75f310
checksum: 0f462315a177c373965a122a4b737546e4f9741fc5df35816d834c2d030de76a9fc433a982a53fdcfca2ce089eabfc20893850cee8298b1c6d17efa8705d4cfe
languageName: node
linkType: hard
"@polkadot/rpc-core@3.0.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@3.1.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": ^5.0.1
"@polkadot/metadata": 3.0.1
"@polkadot/rpc-provider": 3.0.1
"@polkadot/types": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/x-rxjs": 3.0.1
"@polkadot/keyring": ^5.1.1
"@polkadot/metadata": 3.1.1
"@polkadot/rpc-provider": 3.1.1
"@polkadot/types": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/x-rxjs": 3.1.1
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@3.0.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@3.1.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": ^5.0.1
"@polkadot/metadata": 3.0.1
"@polkadot/types": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/util-crypto": ^5.0.1
"@polkadot/x-fetch": ^5.0.1
"@polkadot/x-ws": ^5.0.1
"@polkadot/keyring": ^5.1.1
"@polkadot/metadata": 3.1.1
"@polkadot/types": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/x-fetch": ^5.1.1
"@polkadot/x-ws": ^5.1.1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
mock-socket: ^9.0.3
@@ -1915,13 +1915,13 @@ __metadata:
"@babel/core": ^7.12.10
"@babel/register": ^7.12.10
"@babel/runtime": ^7.12.5
"@polkadot/api": 3.0.1
"@polkadot/metadata": 3.0.1
"@polkadot/rpc-provider": 3.0.1
"@polkadot/types": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/api": 3.1.1
"@polkadot/metadata": 3.1.1
"@polkadot/rpc-provider": 3.1.1
"@polkadot/types": 3.1.1
"@polkadot/util": ^5.1.1
"@types/websocket": ^1.0.1
"@types/yargs": ^15.0.11
"@types/yargs": ^15.0.12
handlebars: ^4.7.6
websocket: ^1.0.33
yargs: ^16.2.0
@@ -1934,42 +1934,42 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-known@3.0.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@3.1.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": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/types": 3.1.1
"@polkadot/util": ^5.1.1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/types@3.0.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@3.1.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": ^5.0.1
"@polkadot/metadata": 3.0.1
"@polkadot/util": ^5.0.1
"@polkadot/util-crypto": ^5.0.1
"@polkadot/x-rxjs": 3.0.1
"@polkadot/keyring": ^5.1.1
"@polkadot/metadata": 3.1.1
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/x-rxjs": 3.1.1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:5.0.1, @polkadot/util-crypto@npm:^5.0.1":
version: 5.0.1
resolution: "@polkadot/util-crypto@npm:5.0.1"
"@polkadot/util-crypto@npm:5.1.1, @polkadot/util-crypto@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/util-crypto@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/networks": 5.0.1
"@polkadot/util": 5.0.1
"@polkadot/wasm-crypto": ^3.0.1
"@polkadot/x-randomvalues": 5.0.1
"@polkadot/networks": 5.1.1
"@polkadot/util": 5.1.1
"@polkadot/wasm-crypto": ^3.1.1
"@polkadot/x-randomvalues": 5.1.1
base-x: ^3.0.8
blakejs: ^1.1.0
bn.js: ^4.11.9
@@ -1981,80 +1981,79 @@ __metadata:
tweetnacl: ^1.0.3
xxhashjs: ^0.2.2
peerDependencies:
"@polkadot/util": 5.0.1
checksum: 4591914926cc333d433ada4ae5f659b8fe4cc4b53744b608ba407342fd952144625c44dba3b0f6d8748d4ac7582442807d32cb57521291709b2244f5d88e327c
"@polkadot/util": 5.1.1
checksum: cfa7758cef54443b20a82089f978f8135ad6580b1361212f05cc908666b638dd45264ca4729b5015672f3c54b2299540912389b0b284888ca3e3f9dfa2faf0a5
languageName: node
linkType: hard
"@polkadot/util@npm:5.0.1, @polkadot/util@npm:^5.0.1":
version: 5.0.1
resolution: "@polkadot/util@npm:5.0.1"
"@polkadot/util@npm:5.1.1, @polkadot/util@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/util@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/x-textdecoder": 5.0.1
"@polkadot/x-textencoder": 5.0.1
"@polkadot/x-textdecoder": 5.1.1
"@polkadot/x-textencoder": 5.1.1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
camelcase: ^5.3.1
ip-regex: ^4.2.0
checksum: d1173668f68e9b4c439b539e414fb5ac2dfa0d83a81534388b385bb0234c027dfb49923477b9cfe6fa9a203b1e916fff68bb0329417b40525dc2ec44bb741a6f
checksum: afb6f3e1082ea4dcc6a2bcf2a84ea3f14384d3fed7e480f936ef095f216be882f35eb31702a2a998493641d158ad05cce89d4b3b4b6e54c863ad8c19f3278ed6
languageName: node
linkType: hard
"@polkadot/wasm-crypto-asmjs@npm:^3.0.1":
version: 3.0.1
resolution: "@polkadot/wasm-crypto-asmjs@npm:3.0.1"
"@polkadot/wasm-crypto-asmjs@npm:^3.1.1":
version: 3.1.1
resolution: "@polkadot/wasm-crypto-asmjs@npm:3.1.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: 5bf3662004f6e493ab6724c0257ef7a1b1405c9f51eaeea702b7024a5a5234a276eb77ee2bdefa77cd4136a426ac4e59c4ba8fa7163182049c6bab67e5885d78
checksum: 6f8f10452e89ba7e3cabbd38f521cd379180c6efec644a79b7e39c04eb00dbba50a121a695cfc02578ec123c3139ce2aa128b193f11ed49e1e9f624685350e8a
languageName: node
linkType: hard
"@polkadot/wasm-crypto-wasm@npm:^3.0.1":
version: 3.0.1
resolution: "@polkadot/wasm-crypto-wasm@npm:3.0.1"
"@polkadot/wasm-crypto-wasm@npm:^3.1.1":
version: 3.1.1
resolution: "@polkadot/wasm-crypto-wasm@npm:3.1.1"
dependencies:
"@babel/runtime": ^7.12.5
fflate: ^0.4.2
checksum: f6bb6ed837c49528fbada6ba7a42b00fd6af3aa9381f6bae458427e5b8274d2e9b83f4783f1b4ad98bf2918cd4089d5a01923a9695c0b8898a06cda1e142b8ad
checksum: f96eda239fa4632359983ef12d776268ed2f16a12cc888e594f3ca43f09b42cc389ad248bbccb99b801b59ad672e2961a9e3dff9377ede067588d4de541df6fa
languageName: node
linkType: hard
"@polkadot/wasm-crypto@npm:^3.0.1":
version: 3.0.1
resolution: "@polkadot/wasm-crypto@npm:3.0.1"
"@polkadot/wasm-crypto@npm:^3.1.1":
version: 3.1.1
resolution: "@polkadot/wasm-crypto@npm:3.1.1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/wasm-crypto-asmjs": ^3.0.1
"@polkadot/wasm-crypto-wasm": ^3.0.1
"@polkadot/wasm-crypto-asmjs": ^3.1.1
"@polkadot/wasm-crypto-wasm": ^3.1.1
peerDependencies:
"@polkadot/util": "*"
"@polkadot/x-randomvalues": "*"
checksum: 9a3b970f3fec48c3b90e227aa39a303dd8895a189d62be4d2ba6c3f5ae2203dc4316c185a547d1a9ede2ea7119274e0a5f4949b349a03eb8d1c22128650d2059
checksum: a7b3d029d88669ea9775c8cfe166a44a06ba243283c03fa0547bf4c6144c5440260a0bd1a6acc9c67b57ab707c406d681a2e52af5e7da3ebe8bb4fdeff071c66
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^5.0.1":
version: 5.0.1
resolution: "@polkadot/x-fetch@npm:5.0.1"
"@polkadot/x-fetch@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/x-fetch@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
"@types/node-fetch": ^2.5.7
node-fetch: ^2.6.1
checksum: 15df4ac74c4cce6ac1179d309ea18bd9125567274f2f21b26689eb99a67523083abfca22475588d8c44212f63f82a2e47c12fd34114f6dacc59bbd66066aec7f
checksum: 94b601403c9a2b58f89d41acddc80cf459d64329bd3390ebaeded7f7ebf451ded73902a9db38d82e24ecae7d83257c3eb39cb6df9e871bba03ea5b314949b0a9
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:5.0.1":
version: 5.0.1
resolution: "@polkadot/x-randomvalues@npm:5.0.1"
"@polkadot/x-randomvalues@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/x-randomvalues@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: a556c94c677628cdfc7b5e0f7b94ee7a211dd2f48388ddcc58ad7b8dd4d2cccbeb9efe2038adebfc0039a9f66da7517b68bfc94cbd470fe796a0326f77a3be07
checksum: e4157b08b7b9147438dbfa9282da6e599a66f80a9140777350427466e15e3217cba82e79d4d5f094849e1392e4ae4a0580df7bbd82e9ca34c1641a999343a608
languageName: node
linkType: hard
"@polkadot/x-rxjs@3.0.1, @polkadot/x-rxjs@workspace:packages/x-rxjs":
"@polkadot/x-rxjs@3.1.1, @polkadot/x-rxjs@workspace:packages/x-rxjs":
version: 0.0.0-use.local
resolution: "@polkadot/x-rxjs@workspace:packages/x-rxjs"
dependencies:
@@ -2063,32 +2062,32 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/x-textdecoder@npm:5.0.1":
version: 5.0.1
resolution: "@polkadot/x-textdecoder@npm:5.0.1"
"@polkadot/x-textdecoder@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/x-textdecoder@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: d68160d81ed252aeabaecab97ed12c780437fa6348a59cfcbe997b73b095d8f3674bfbbded587215eb2f375da6056b8ae2db01683742aeeb9995e9217c5c8720
checksum: 1b86e8c9dfbad3c5e9372126e4e94cc517fa7ccb84a1e3e8106bb778358a6c131675dc49da86db87d6d402be300ea3dcb75bd8f7085a3384daaa4e55f509070d
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:5.0.1":
version: 5.0.1
resolution: "@polkadot/x-textencoder@npm:5.0.1"
"@polkadot/x-textencoder@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/x-textencoder@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: fc864da056d86484342f51960ef74fe5f63b34e2945416375d29d7272af8bef385e5fa508c3f3dc7cab6da2ad8aa54805d0ef40136b83e1b0bc04df6cd9b3aa4
checksum: bd7773b320b3c6622cd742c0e82c0eb5600b4e38821151111a7fa8adabcdbea895d1a7a9424e1126c108c4eac43c05a85427403ecb8ba4223123a21f75fdb55c
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^5.0.1":
version: 5.0.1
resolution: "@polkadot/x-ws@npm:5.0.1"
"@polkadot/x-ws@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/x-ws@npm:5.1.1"
dependencies:
"@babel/runtime": ^7.12.5
"@types/websocket": ^1.0.1
websocket: ^1.0.33
checksum: afffe32471d4137c39f5d2768f5ed1165b70d6921c72e9b305de6a9fc6d18b72c3e6f3625d9945bd96dc5ba5ef9fe6ccd5d5f7515ee2fef663373c1af9cedb1c
checksum: 4499db46ab6ee288ca98c21f763849f3e7ed150af12ace3aeda592222012cd49b02bab6238316c4c3b691eeb986300ec18d1803a1ac2536851c769eebf7bac1e
languageName: node
linkType: hard
@@ -2346,21 +2345,21 @@ __metadata:
languageName: node
linkType: hard
"@types/yargs@npm:^15.0.0, @types/yargs@npm:^15.0.11":
version: 15.0.11
resolution: "@types/yargs@npm:15.0.11"
"@types/yargs@npm:^15.0.0, @types/yargs@npm:^15.0.12":
version: 15.0.12
resolution: "@types/yargs@npm:15.0.12"
dependencies:
"@types/yargs-parser": "*"
checksum: e26daf9b3a85085d2f2571dd6e23968c8ad7fee87bf0c0c979594b7d5a52ff3353cdf5389d40c61c5f21f271dca93123a4e260c6887c3c48355457c9413942b8
checksum: b67cf9e8f25865a6d6e72196fe7f47c6f328d2b7a54ed9fa0e60f9693abb332fec1a826f90310804f231bca28a2f71367956b3be2fdba2d4bf316f0394d84f4d
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/eslint-plugin@npm:4.9.1"
"@typescript-eslint/eslint-plugin@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/eslint-plugin@npm:4.10.0"
dependencies:
"@typescript-eslint/experimental-utils": 4.9.1
"@typescript-eslint/scope-manager": 4.9.1
"@typescript-eslint/experimental-utils": 4.10.0
"@typescript-eslint/scope-manager": 4.10.0
debug: ^4.1.1
functional-red-black-tree: ^1.0.1
regexpp: ^3.0.0
@@ -2372,66 +2371,66 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 8de2705aaf40252c16e0408e3eee5e04c2048608ab2a3e3a40d65057e7abd185c7fad33b3d586836dd670452ec008edcbb00055a565ce86e6621f3ea71f6ef24
checksum: 7c9ef88c112ad81b75697023f3e8df0bb69c33d130868003b55e02416a620ad0e95341576b10050d16d4e04a4c87b1721d762ad5367bc9c2d305a23ab4f94505
languageName: node
linkType: hard
"@typescript-eslint/experimental-utils@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/experimental-utils@npm:4.9.1"
"@typescript-eslint/experimental-utils@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/experimental-utils@npm:4.10.0"
dependencies:
"@types/json-schema": ^7.0.3
"@typescript-eslint/scope-manager": 4.9.1
"@typescript-eslint/types": 4.9.1
"@typescript-eslint/typescript-estree": 4.9.1
"@typescript-eslint/scope-manager": 4.10.0
"@typescript-eslint/types": 4.10.0
"@typescript-eslint/typescript-estree": 4.10.0
eslint-scope: ^5.0.0
eslint-utils: ^2.0.0
peerDependencies:
eslint: "*"
checksum: fee1f272addbcd453a8f477cd31bb62c6f445b0e7b642e99cb134aa3cfc72a691e51e5aacc5b70cc6f8f18d234f4c8bf1772d3abc683befa0d82f1efd6474cd0
checksum: 20dad7bdb6e0694cf6b89edd35d9568ac91e76f7ad84bb052a7e79c764a84ebfc32ecd14d924c34e5c0d9e07961d27cdc209858a7861199c771f10eb77bc801e
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/parser@npm:4.9.1"
"@typescript-eslint/parser@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/parser@npm:4.10.0"
dependencies:
"@typescript-eslint/scope-manager": 4.9.1
"@typescript-eslint/types": 4.9.1
"@typescript-eslint/typescript-estree": 4.9.1
"@typescript-eslint/scope-manager": 4.10.0
"@typescript-eslint/types": 4.10.0
"@typescript-eslint/typescript-estree": 4.10.0
debug: ^4.1.1
peerDependencies:
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 61fc1b3e9bfd5056b46337bbea333eb0b86391232ff63669a4e5c08766e041f2cf05ab769374a1b8fde25728646e5b4441d992476cc66abab2a72289cdabfc5a
checksum: 8968583d8c789a2b3f33d9acc258297ddafc083eb339322f87402e21690a3e0b9c32926d3729a38b5c143af2702bda9d7d0531469ac11da068cf4004689c8e48
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/scope-manager@npm:4.9.1"
"@typescript-eslint/scope-manager@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/scope-manager@npm:4.10.0"
dependencies:
"@typescript-eslint/types": 4.9.1
"@typescript-eslint/visitor-keys": 4.9.1
checksum: 352c9c2dd8057210376a65aa753e330d3b6ed670a8686905acbd81d118062d4f0a5043b28bedf6340d6e29a386b58c8e9bee7732fca1d21fdab69dea1554b9db
"@typescript-eslint/types": 4.10.0
"@typescript-eslint/visitor-keys": 4.10.0
checksum: c320c086637a532400ce6e34aedb66e443b0e5ab725e814093a585419053f8e404aab8f7ea890f0866c2137fe7108b34f9c9216d8a74f4908f17b263d5086dd9
languageName: node
linkType: hard
"@typescript-eslint/types@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/types@npm:4.9.1"
checksum: e7c5094ce054e2443c4304b6fa35cae8937ffa04f32b0f32db71738671e0ec94a54f29e820745079067fdafa0061a58846b5cde4390f0a9804d5ca7075e89f76
"@typescript-eslint/types@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/types@npm:4.10.0"
checksum: e82f04695b11792e49c8b9fc60e289f337f7c31b68d04a6f2405163b8a85462eff683ad62e2694368432024f18cdc4d592fe048372774b6cb65057715e9c3105
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/typescript-estree@npm:4.9.1"
"@typescript-eslint/typescript-estree@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/typescript-estree@npm:4.10.0"
dependencies:
"@typescript-eslint/types": 4.9.1
"@typescript-eslint/visitor-keys": 4.9.1
"@typescript-eslint/types": 4.10.0
"@typescript-eslint/visitor-keys": 4.10.0
debug: ^4.1.1
globby: ^11.0.1
is-glob: ^4.0.1
@@ -2441,7 +2440,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: cb5ce82696ac4d7d8ce63a54dd522511d3231193d07be44b2456d9f22890c6cdbb03e531ec889629081d9e4a2c322566424246da02e2d82c80625eb346b91006
checksum: fbc87779af4fa59a5caae47a9429a2229303066c760db46e824d8bdb6d437e1c887d82e9bc85f89570189aacb899875f9b677cadd6b28fa47364ddd2b8f92268
languageName: node
linkType: hard
@@ -2463,13 +2462,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:4.9.1":
version: 4.9.1
resolution: "@typescript-eslint/visitor-keys@npm:4.9.1"
"@typescript-eslint/visitor-keys@npm:4.10.0":
version: 4.10.0
resolution: "@typescript-eslint/visitor-keys@npm:4.10.0"
dependencies:
"@typescript-eslint/types": 4.9.1
"@typescript-eslint/types": 4.10.0
eslint-visitor-keys: ^2.0.0
checksum: 1b059e2ffd0432f588d13160a8f7d64dff30a8727e0c3c5c0235db1be8b13f08544b2eab8374157b8fbc77ad8f58e768ae3c5266d61275f275dc2cda8aad6717
checksum: e8d8057632a4aa5595769da14d41a19cbc4a6c02539e5c882b218b2f347445a397f9ef28ffc8b9eefa4d271bed39aa9e3adb182416840f1c73ecf59a0abac876
languageName: node
linkType: hard
@@ -2939,16 +2938,16 @@ __metadata:
languageName: node
linkType: hard
"babel-plugin-module-resolver@npm:^4.0.0":
version: 4.0.0
resolution: "babel-plugin-module-resolver@npm:4.0.0"
"babel-plugin-module-resolver@npm:^4.1.0":
version: 4.1.0
resolution: "babel-plugin-module-resolver@npm:4.1.0"
dependencies:
find-babel-config: ^1.2.0
glob: ^7.1.6
pkg-up: ^3.1.0
reselect: ^4.0.0
resolve: ^1.13.1
checksum: ac50e01ef09f1dc506e250e852dcfb49c0cd0e7e5bf02b3f3d1de7c51ccda8bf34fa63bc9a698c098004a15d91efcc65517397ae90209c9c23b7778b83235ce3
checksum: c3efeaac63b63761d253408c120469b13817ae00d05f5ba6f8d25bcb5970affe42b01aabb91db63332993796ece1f57a3680d66317523484bc57ba479e720e89
languageName: node
linkType: hard
@@ -4909,13 +4908,6 @@ __metadata:
languageName: node
linkType: hard
"fflate@npm:^0.4.2":
version: 0.4.2
resolution: "fflate@npm:0.4.2"
checksum: e96c19a1d514f74faa1fe320c022aaf1dade597150510da18dce024ff5a2fa0b6e103daf828fac26c54b647777256638fc7106a3dcff078572b8dee73071df54
languageName: node
linkType: hard
"figures@npm:^3.0.0":
version: 3.2.0
resolution: "figures@npm:3.2.0"
@@ -9196,7 +9188,7 @@ fsevents@~2.1.2:
"@babel/core": ^7.12.10
"@babel/register": ^7.12.10
"@babel/runtime": ^7.12.5
"@polkadot/dev": ^0.61.2
"@polkadot/dev": ^0.61.13
"@polkadot/ts": ^0.3.58
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^26.0.19