Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c87ef7526b | ||
|
|
bccf2d52ad | ||
|
|
be6dbdd3e4 | ||
|
|
3c34ee9897 | ||
|
|
9ad97813e3 | ||
|
|
028f04e47f | ||
|
|
4974c9247f | ||
|
|
1ffe6a11bf | ||
|
|
19699ea445 | ||
|
|
d98ccfb12a | ||
|
|
41cb056b0f | ||
|
|
48bda0bdea | ||
|
|
1b393c7b67 | ||
|
|
f52e518b7b | ||
|
|
08970cff88 | ||
|
|
6d38ca6453 | ||
|
|
60db4bc66b | ||
|
|
0661237b28 | ||
|
|
6ccac712a8 | ||
|
|
3d4877940c | ||
|
|
70fc95ef27 |
+2
-3
@@ -1,4 +1,4 @@
|
||||
26
|
||||
27
|
||||
1.4.2
|
||||
1.6.2
|
||||
1.11.2
|
||||
@@ -17,6 +17,5 @@
|
||||
3.9.2
|
||||
3.9.3
|
||||
3.10.2
|
||||
|
||||
4.0.2
|
||||
4.0.3
|
||||
4.0.3
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 4.2.1 Mar 22, 2021
|
||||
|
||||
Upgrade priority: Low. Recommended when tracking the latest updates from Substrate.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Fix contract even decoding on Substrate 3 (Thanks to https://github.com/vminkov)
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust `Extender{Header, SignedBlock}` types to ensure at-block `Header` types are used
|
||||
- Explicit definition for new Rococo triple refcount `AccountData` types
|
||||
- Convert metadata private class fields to ES-private
|
||||
- Adjust `SignedBlock` type for new `justifications` field
|
||||
- Optimize society derive for multi accounts
|
||||
- Bump metadata to latest substrate version
|
||||
|
||||
|
||||
## 4.1.1 Mar 15, 2021
|
||||
|
||||
Upgrade priority: Low. Recommended when tracking the latest updates from Substrate.
|
||||
|
||||
+5
-5
@@ -25,14 +25,14 @@
|
||||
"test:watch": "polkadot-dev-run-test --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.13.8",
|
||||
"@babel/core": "^7.13.10",
|
||||
"@babel/register": "^7.13.8",
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/dev": "^0.62.5",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/dev": "^0.62.6",
|
||||
"@polkadot/ts": "^0.3.62",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/jest": "^26.0.21",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"version": "4.1.1"
|
||||
"version": "4.2.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"main": "index.js",
|
||||
@@ -16,9 +16,9 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/api": "4.1.1",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/api": "4.2.1",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/x-rxjs": "^6.0.5",
|
||||
"bn.js": "^4.11.9"
|
||||
|
||||
@@ -156,7 +156,8 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
return this.api.tx.contracts
|
||||
.call(this.address, value, this.#getGas(gasLimit), this.abi.findMessage(messageOrId).toU8a(params))
|
||||
.withResultTransform((result: ISubmittableResult) =>
|
||||
new ContractSubmittableResult(result, applyOnEvent(result, ['ContractExecution'], (records: EventRecord[]) =>
|
||||
// ContractEmitted is the current generation, ContractExecution is the previous generation
|
||||
new ContractSubmittableResult(result, applyOnEvent(result, ['ContractEmitted', 'ContractExecution'], (records: EventRecord[]) =>
|
||||
records
|
||||
.map(({ event: { data: [, data] } }): DecodedEvent | null => {
|
||||
try {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', version: '4.2.1' };
|
||||
|
||||
@@ -12,7 +12,7 @@ import BN from 'bn.js';
|
||||
import { createTypeUnsafe } from '@polkadot/types/create';
|
||||
import { isBigInt, isBn, isNumber, isString } from '@polkadot/util';
|
||||
|
||||
type ContractEvents = 'CodeStored' | 'ContractExecution' | 'Instantiated';
|
||||
type ContractEvents = 'CodeStored' | 'ContractEmitted' | 'ContractExecution' | 'Instantiated';
|
||||
|
||||
type TOptions = BlueprintOptions | ContractOptions;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"main": "index.js",
|
||||
@@ -16,10 +16,10 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/api": "4.1.1",
|
||||
"@polkadot/rpc-core": "4.1.1",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/api": "4.2.1",
|
||||
"@polkadot/rpc-core": "4.2.1",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/util-crypto": "^6.0.5",
|
||||
"@polkadot/x-rxjs": "^6.0.5",
|
||||
@@ -27,6 +27,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.0.5",
|
||||
"@polkadot/rpc-provider": "4.1.1"
|
||||
"@polkadot/rpc-provider": "4.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { SignedBlockExtended } from '../type/types';
|
||||
|
||||
import { combineLatest, of } from '@polkadot/x-rxjs';
|
||||
import { catchError, map } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { SignedBlockExtended } from '../type';
|
||||
import { createSignedBlockExtended } from '../type';
|
||||
import { memo } from '../util';
|
||||
|
||||
/**
|
||||
@@ -33,7 +34,7 @@ export function getBlock (instanceId: string, api: ApiInterfaceRx): (hash: Uint8
|
||||
: of([])
|
||||
]).pipe(
|
||||
map(([signedBlock, events, validators]): SignedBlockExtended =>
|
||||
new SignedBlockExtended(signedBlock.registry, signedBlock, events, validators)
|
||||
createSignedBlockExtended(api.registry, signedBlock, events, validators)
|
||||
),
|
||||
catchError((): Observable<undefined> =>
|
||||
// where rpc.chain.getHeader throws, we will land here - it can happen that
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { HeaderExtended } from '../type/types';
|
||||
|
||||
import { combineLatest, of } from '@polkadot/x-rxjs';
|
||||
import { catchError, map } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { HeaderExtended } from '../type';
|
||||
import { createHeaderExtended } from '../type';
|
||||
import { memo } from '../util';
|
||||
|
||||
/**
|
||||
@@ -33,7 +34,7 @@ export function getHeader (instanceId: string, api: ApiInterfaceRx): (hash: Uint
|
||||
: of([])
|
||||
]).pipe(
|
||||
map(([header, validators]): HeaderExtended =>
|
||||
new HeaderExtended(header.registry, header, validators)
|
||||
createHeaderExtended(header.registry, header, validators)
|
||||
),
|
||||
catchError((): Observable<undefined> =>
|
||||
// where rpc.chain.getHeader throws, we will land here - it can happen that
|
||||
|
||||
@@ -5,12 +5,12 @@ import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { Vec } from '@polkadot/types';
|
||||
import type { EventRecord, SignedBlock } from '@polkadot/types/interfaces';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { HeaderExtended } from '../type';
|
||||
import type { HeaderExtended, SignedBlockExtended } from '../type/types';
|
||||
|
||||
import { combineLatest, of } from '@polkadot/x-rxjs';
|
||||
import { map, switchMap } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { SignedBlockExtended } from '../type';
|
||||
import { createSignedBlockExtended } from '../type';
|
||||
import { memo } from '../util';
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ export function subscribeNewBlocks (instanceId: string, api: ApiInterfaceRx): ()
|
||||
);
|
||||
}),
|
||||
map(([block, events, header]) =>
|
||||
new SignedBlockExtended(block.registry, block, events, header.validators)
|
||||
createSignedBlockExtended(block.registry, block, events, header.validators)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { HeaderExtended } from '../type/types';
|
||||
|
||||
import { combineLatest, of } from '@polkadot/x-rxjs';
|
||||
import { map } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { HeaderExtended } from '../type';
|
||||
import { createHeaderExtended } from '../type';
|
||||
import { memo } from '../util';
|
||||
|
||||
/**
|
||||
@@ -34,7 +35,7 @@ export function subscribeNewHeads (instanceId: string, api: ApiInterfaceRx): ()
|
||||
map(([header, validators]): HeaderExtended => {
|
||||
header.createdAtHash = header.hash;
|
||||
|
||||
return new HeaderExtended(header.registry, header, validators);
|
||||
return createHeaderExtended(header.registry, header, validators);
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', version: '4.2.1' };
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { bool, Option, Vec } from '@polkadot/types';
|
||||
import type { AccountId, Balance, BlockNumber, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { DeriveSocietyMember } from '../types';
|
||||
|
||||
@@ -12,28 +10,13 @@ import { map } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
type Result = [Vec<ITuple<[BlockNumber, Balance]>>, StrikeCount, Option<SocietyVote>, bool, Option<VouchingStatus>];
|
||||
|
||||
/**
|
||||
* @description Get the member info for a society
|
||||
*/
|
||||
export function member (instanceId: string, api: ApiInterfaceRx): (accountId: AccountId) => Observable<DeriveSocietyMember> {
|
||||
return memo(instanceId, (accountId: AccountId): Observable<DeriveSocietyMember> =>
|
||||
api.queryMulti<Result>([
|
||||
[api.query.society.payouts, accountId],
|
||||
[api.query.society.strikes, accountId],
|
||||
[api.query.society.defenderVotes, accountId],
|
||||
[api.query.society.suspendedMembers, accountId],
|
||||
[api.query.society.vouching, accountId]
|
||||
]).pipe(
|
||||
map(([payouts, strikes, defenderVotes, suspended, vouching]: Result): DeriveSocietyMember => ({
|
||||
accountId,
|
||||
isSuspended: suspended.isTrue,
|
||||
payouts,
|
||||
strikes,
|
||||
vote: defenderVotes.unwrapOr(undefined),
|
||||
vouching: vouching.unwrapOr(undefined)
|
||||
}))
|
||||
api.derive.society._members([accountId]).pipe(
|
||||
map(([result]) => result)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,28 +2,51 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { bool, Option, Vec } from '@polkadot/types';
|
||||
import type { AccountId, Balance, BlockNumber, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { DeriveSocietyMember } from '../types';
|
||||
|
||||
import { combineLatest } from '@polkadot/x-rxjs';
|
||||
import { switchMap } from '@polkadot/x-rxjs/operators';
|
||||
import { combineLatest, of } from '@polkadot/x-rxjs';
|
||||
import { map, switchMap } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
type Result = [AccountId[], Vec<ITuple<[BlockNumber, Balance]>>[], StrikeCount[], Option<SocietyVote>[], bool[], Option<VouchingStatus>[]];
|
||||
|
||||
export function _members (instanceId: string, api: ApiInterfaceRx): (accountIds: AccountId[]) => Observable<DeriveSocietyMember[]> {
|
||||
return memo(instanceId, (accountIds: AccountId[]): Observable<DeriveSocietyMember[]> =>
|
||||
combineLatest<Result>([
|
||||
of(accountIds),
|
||||
api.query.society.payouts.multi(accountIds),
|
||||
api.query.society.strikes.multi(accountIds),
|
||||
api.query.society.defenderVotes.multi(accountIds),
|
||||
api.query.society.suspendedMembers.multi(accountIds),
|
||||
api.query.society.vouching.multi(accountIds)
|
||||
]).pipe(
|
||||
map(([accountIds, payouts, strikes, defenderVotes, suspended, vouching]) =>
|
||||
accountIds.map((accountId, index) => ({
|
||||
accountId,
|
||||
isDefenderVoter: defenderVotes[index].isSome,
|
||||
isSuspended: suspended[index].isTrue,
|
||||
payouts: payouts[index],
|
||||
strikes: strikes[index],
|
||||
vote: defenderVotes[index].unwrapOr(undefined),
|
||||
vouching: vouching[index].unwrapOr(undefined)
|
||||
}))
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Get the member info for a society
|
||||
*/
|
||||
export function members (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSocietyMember[]> {
|
||||
return memo(instanceId, (): Observable<DeriveSocietyMember[]> =>
|
||||
api.query.society.members<AccountId[]>().pipe(
|
||||
switchMap((members): Observable<DeriveSocietyMember[]> =>
|
||||
combineLatest(
|
||||
members.map((accountId): Observable<DeriveSocietyMember> =>
|
||||
api.derive.society.member(accountId)
|
||||
)
|
||||
)
|
||||
)
|
||||
switchMap((members) => api.derive.society._members(members))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,44 +2,41 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AccountId, Header } from '@polkadot/types/interfaces';
|
||||
import type { Constructor, Registry } from '@polkadot/types/types';
|
||||
|
||||
import { Struct } from '@polkadot/types';
|
||||
import runtimeTypes from '@polkadot/types/interfaces/runtime/definitions';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
import type { HeaderExtended } from './types';
|
||||
|
||||
import { extractAuthor } from './util';
|
||||
|
||||
// We can ignore the properties, added via Struct.with
|
||||
const _Header = Struct.with(runtimeTypes.types.Header as any) as Constructor<Header>;
|
||||
export function createHeaderExtended (registry: Registry, header?: Header, validators?: AccountId[]): HeaderExtended {
|
||||
// an instance of the base extrinsic for us to extend
|
||||
const HeaderBase = registry.createClass('Header');
|
||||
|
||||
/**
|
||||
* @name HeaderExtended
|
||||
* @description
|
||||
* A [[Block]] header with an additional `author` field that indicates the block author
|
||||
*/
|
||||
export class HeaderExtended extends _Header {
|
||||
readonly #author?: AccountId;
|
||||
readonly #validators?: AccountId[];
|
||||
class Implementation extends HeaderBase implements HeaderExtended {
|
||||
readonly #author?: AccountId;
|
||||
readonly #validators?: AccountId[];
|
||||
|
||||
constructor (registry: Registry, header?: Header, validators?: AccountId[]) {
|
||||
super(registry, header);
|
||||
constructor (registry: Registry, header?: Header, validators?: AccountId[]) {
|
||||
super(registry, header);
|
||||
|
||||
this.#author = extractAuthor(this.digest, validators);
|
||||
this.#validators = validators;
|
||||
this.createdAtHash = header?.createdAtHash;
|
||||
this.#author = extractAuthor(this.digest, validators);
|
||||
this.#validators = validators;
|
||||
this.createdAtHash = header?.createdAtHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the author for the block
|
||||
*/
|
||||
public get author (): AccountId | undefined {
|
||||
return this.#author;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the validators for the block
|
||||
*/
|
||||
public get validators (): AccountId[] | undefined {
|
||||
return this.#validators;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the author for the block
|
||||
*/
|
||||
public get author (): AccountId | undefined {
|
||||
return this.#author;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the validators for the block
|
||||
*/
|
||||
public get validators (): AccountId[] | undefined {
|
||||
return this.#validators;
|
||||
}
|
||||
return new Implementation(registry, header, validators);
|
||||
}
|
||||
|
||||
@@ -1,24 +1,12 @@
|
||||
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AccountId, DispatchError, DispatchInfo, Event, EventRecord, Extrinsic, SignedBlock } from '@polkadot/types/interfaces';
|
||||
import type { Constructor, Registry } from '@polkadot/types/types';
|
||||
|
||||
import { Struct } from '@polkadot/types';
|
||||
import runtimeTypes from '@polkadot/types/interfaces/runtime/definitions';
|
||||
import type { AccountId, DispatchError, DispatchInfo, EventRecord, Extrinsic, SignedBlock } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
import type { SignedBlockExtended, TxWithEvent } from './types';
|
||||
|
||||
import { extractAuthor } from './util';
|
||||
|
||||
// We can ignore the properties, added via Struct.with
|
||||
const _SignedBlock = Struct.with(runtimeTypes.types.SignedBlock as any) as Constructor<SignedBlock>;
|
||||
|
||||
interface TxWithEvent {
|
||||
dispatchError?: DispatchError;
|
||||
dispatchInfo?: DispatchInfo;
|
||||
events: Event[];
|
||||
extrinsic: Extrinsic;
|
||||
}
|
||||
|
||||
function mapExtrinsics (extrinsics: Extrinsic[], records: EventRecord[]): TxWithEvent[] {
|
||||
return extrinsics.map((extrinsic, index): TxWithEvent => {
|
||||
let dispatchError: DispatchError | undefined;
|
||||
@@ -43,43 +31,45 @@ function mapExtrinsics (extrinsics: Extrinsic[], records: EventRecord[]): TxWith
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @name SignedBlockExtended
|
||||
* @description
|
||||
* A [[Block]] header with an additional `author` field that indicates the block author
|
||||
*/
|
||||
export class SignedBlockExtended extends _SignedBlock {
|
||||
readonly #author?: AccountId;
|
||||
readonly #events: EventRecord[];
|
||||
readonly #extrinsics: TxWithEvent[];
|
||||
export function createSignedBlockExtended (registry: Registry, block?: SignedBlock, events?: EventRecord[], validators?: AccountId[]): SignedBlockExtended {
|
||||
// an instance of the base extrinsic for us to extend
|
||||
const SignedBlockBase = registry.createClass('SignedBlock');
|
||||
|
||||
constructor (registry: Registry, block?: SignedBlock, events?: EventRecord[], validators?: AccountId[]) {
|
||||
super(registry, block);
|
||||
class Implementation extends SignedBlockBase implements SignedBlockExtended {
|
||||
readonly #author?: AccountId;
|
||||
readonly #events: EventRecord[];
|
||||
readonly #extrinsics: TxWithEvent[];
|
||||
|
||||
this.#author = extractAuthor(this.block.header.digest, validators);
|
||||
this.#events = events || ([] as EventRecord[]);
|
||||
this.#extrinsics = mapExtrinsics(this.block.extrinsics, this.#events);
|
||||
this.createdAtHash = block?.createdAtHash;
|
||||
constructor (registry: Registry, block?: SignedBlock, events?: EventRecord[], validators?: AccountId[]) {
|
||||
super(registry, block);
|
||||
|
||||
this.#author = extractAuthor(this.block.header.digest, validators);
|
||||
this.#events = events || ([] as EventRecord[]);
|
||||
this.#extrinsics = mapExtrinsics(this.block.extrinsics, this.#events);
|
||||
this.createdAtHash = block?.createdAtHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the author for the block
|
||||
*/
|
||||
public get author (): AccountId | undefined {
|
||||
return this.#author;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the events associated with the block
|
||||
*/
|
||||
public get events (): EventRecord[] {
|
||||
return this.#events;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the extrinsics and their events, mapped
|
||||
*/
|
||||
public get extrinsics (): TxWithEvent[] {
|
||||
return this.#extrinsics;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the author for the block
|
||||
*/
|
||||
public get author (): AccountId | undefined {
|
||||
return this.#author;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Convenience method, returns the events associated with the block
|
||||
*/
|
||||
public get events (): EventRecord[] {
|
||||
return this.#events;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the extrinsics and their events, mapped
|
||||
*/
|
||||
public get extrinsics (): TxWithEvent[] {
|
||||
return this.#extrinsics;
|
||||
}
|
||||
return new Implementation(registry, block, events, validators);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { HeaderExtended } from './HeaderExtended';
|
||||
export { SignedBlockExtended } from './SignedBlockExtended';
|
||||
export { createHeaderExtended } from './HeaderExtended';
|
||||
export { createSignedBlockExtended } from './SignedBlockExtended';
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AccountId, DispatchError, DispatchInfo, Event, EventRecord, Extrinsic, Header, SignedBlock } from '@polkadot/types/interfaces';
|
||||
|
||||
export interface HeaderExtended extends Header {
|
||||
readonly author: AccountId | undefined;
|
||||
readonly validators: AccountId[] | undefined;
|
||||
}
|
||||
|
||||
export interface SignedBlockExtended extends SignedBlock {
|
||||
readonly author: AccountId | undefined;
|
||||
readonly events: EventRecord[];
|
||||
readonly extrinsics: TxWithEvent[];
|
||||
}
|
||||
|
||||
export interface TxWithEvent {
|
||||
dispatchError?: DispatchError;
|
||||
dispatchInfo?: DispatchInfo;
|
||||
events: Event[];
|
||||
extrinsic: Extrinsic;
|
||||
}
|
||||
@@ -12,6 +12,7 @@ export * from './elections/types';
|
||||
export * from './parachains/types';
|
||||
export * from './session/types';
|
||||
export * from './staking/types';
|
||||
export * from './type/types';
|
||||
|
||||
export interface DeriveBalancesAccountData {
|
||||
freeBalance: Balance;
|
||||
@@ -107,6 +108,7 @@ export interface DeriveSocietyCandidate {
|
||||
|
||||
export interface DeriveSocietyMember {
|
||||
accountId: AccountId;
|
||||
isDefenderVoter: boolean;
|
||||
isSuspended: boolean;
|
||||
payouts: [BlockNumber, Balance][];
|
||||
strikes: StrikeCount;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
@@ -16,14 +16,14 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/api-derive": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/api-derive": "4.2.1",
|
||||
"@polkadot/keyring": "^6.0.5",
|
||||
"@polkadot/metadata": "4.1.1",
|
||||
"@polkadot/rpc-core": "4.1.1",
|
||||
"@polkadot/rpc-provider": "4.1.1",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@polkadot/types-known": "4.1.1",
|
||||
"@polkadot/metadata": "4.2.1",
|
||||
"@polkadot/rpc-core": "4.2.1",
|
||||
"@polkadot/rpc-provider": "4.2.1",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/types-known": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/util-crypto": "^6.0.5",
|
||||
"@polkadot/x-rxjs": "^6.0.5",
|
||||
|
||||
@@ -16,11 +16,9 @@ declare module '@polkadot/api/types/consts' {
|
||||
babe: {
|
||||
[key: string]: Codec;
|
||||
/**
|
||||
* The number of **slots** that an epoch takes. We couple sessions to
|
||||
* epochs, i.e. we start a new session once the new epoch begins.
|
||||
* NOTE: Currently it is not possible to change the epoch duration
|
||||
* after the chain has started. Attempting to do so will brick block
|
||||
* production.
|
||||
* The amount of time, in slots, that each epoch should last.
|
||||
* NOTE: Currently it is not possible to change the epoch duration after
|
||||
* the chain has started. Attempting to do so will brick block production.
|
||||
**/
|
||||
epochDuration: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -318,15 +316,20 @@ declare module '@polkadot/api/types/consts' {
|
||||
proxy: {
|
||||
[key: string]: Codec;
|
||||
/**
|
||||
* `AnnouncementDepositBase` metadata shadow.
|
||||
* The base amount of currency needed to reserve for creating an announcement.
|
||||
*
|
||||
* This is held when a new storage item holding a `Balance` is created (typically 16 bytes).
|
||||
**/
|
||||
announcementDepositBase: BalanceOf & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* `AnnouncementDepositFactor` metadata shadow.
|
||||
* The amount of currency needed per announcement made.
|
||||
*
|
||||
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
||||
* into a pre-existing storage value.
|
||||
**/
|
||||
announcementDepositFactor: BalanceOf & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* `MaxPending` metadata shadow.
|
||||
* The maximum amount of time-delayed announcements that are allowed to be pending.
|
||||
**/
|
||||
maxPending: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -335,10 +338,17 @@ declare module '@polkadot/api/types/consts' {
|
||||
maxProxies: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating a proxy.
|
||||
*
|
||||
* This is held for an additional storage item whose value size is
|
||||
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
||||
**/
|
||||
proxyDepositBase: BalanceOf & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of currency needed per proxy added.
|
||||
*
|
||||
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a pre-existing
|
||||
* storage value. Thus, when configuring `ProxyDepositFactor` one should take into account
|
||||
* `32 + proxy_type.encode().len()` bytes of data.
|
||||
**/
|
||||
proxyDepositFactor: BalanceOf & AugmentedConst<ApiType>;
|
||||
};
|
||||
@@ -400,22 +410,6 @@ declare module '@polkadot/api/types/consts' {
|
||||
* Number of eras that staked funds must remain bonded for.
|
||||
**/
|
||||
bondingDuration: EraIndex & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks before the end of the era from which election submissions are allowed.
|
||||
*
|
||||
* Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
|
||||
* be used.
|
||||
*
|
||||
* This is bounded by being within the last session. Hence, setting it to a value more than the
|
||||
* length of a session will be pointless.
|
||||
**/
|
||||
electionLookahead: BlockNumber & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of balancing iterations to run in the offchain submission.
|
||||
*
|
||||
* If set to 0, balance_solution will not be executed at all.
|
||||
**/
|
||||
maxIterations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators rewarded for each validator.
|
||||
*
|
||||
@@ -423,10 +417,6 @@ declare module '@polkadot/api/types/consts' {
|
||||
* their reward. This used to limit the i/o cost for the nominator payout.
|
||||
**/
|
||||
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The threshold of improvement that should be provided for a new solution to be accepted.
|
||||
**/
|
||||
minSolutionScoreBump: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Number of sessions per era.
|
||||
**/
|
||||
|
||||
@@ -91,6 +91,21 @@ declare module '@polkadot/api/types/errors' {
|
||||
**/
|
||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
||||
};
|
||||
babe: {
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A given equivocation report is valid but already previously reported.
|
||||
**/
|
||||
DuplicateOffenceReport: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An equivocation proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidEquivocationProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A key ownership proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
||||
};
|
||||
balances: {
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1032,10 +1047,6 @@ declare module '@polkadot/api/types/errors' {
|
||||
* A nomination target was supplied that was blocked or otherwise not a validator.
|
||||
**/
|
||||
BadTarget: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The call is not allowed at the given time due to restrictions of election period.
|
||||
**/
|
||||
CallNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate index.
|
||||
**/
|
||||
@@ -1092,61 +1103,6 @@ declare module '@polkadot/api/types/errors' {
|
||||
* Can not rebond without unlocking chunks.
|
||||
**/
|
||||
NoUnlockChunk: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Error while building the assignment type from the compact. This can happen if an index
|
||||
* is invalid, or if the weights _overflow_.
|
||||
**/
|
||||
OffchainElectionBogusCompact: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The submitted result has unknown edges that are not among the presented winners.
|
||||
**/
|
||||
OffchainElectionBogusEdge: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The election size is invalid.
|
||||
**/
|
||||
OffchainElectionBogusElectionSize: AugmentedError<ApiType>;
|
||||
/**
|
||||
* One of the submitted nominators has an edge to which they have not voted on chain.
|
||||
**/
|
||||
OffchainElectionBogusNomination: AugmentedError<ApiType>;
|
||||
/**
|
||||
* One of the submitted nominators is not an active nominator on chain.
|
||||
**/
|
||||
OffchainElectionBogusNominator: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The claimed score does not match with the one computed from the data.
|
||||
**/
|
||||
OffchainElectionBogusScore: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A self vote must only be originated from a validator to ONLY themselves.
|
||||
**/
|
||||
OffchainElectionBogusSelfVote: AugmentedError<ApiType>;
|
||||
/**
|
||||
* One of the submitted winners is not an active candidate on chain (index is out of range
|
||||
* in snapshot).
|
||||
**/
|
||||
OffchainElectionBogusWinner: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Incorrect number of winners were presented.
|
||||
**/
|
||||
OffchainElectionBogusWinnerCount: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The submitted result is received out of the open window.
|
||||
**/
|
||||
OffchainElectionEarlySubmission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* One of the submitted nominators has an edge which is submitted before the last non-zero
|
||||
* slash of the target.
|
||||
**/
|
||||
OffchainElectionSlashedNomination: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The submitted result is not as good as the one stored on chain.
|
||||
**/
|
||||
OffchainElectionWeakSubmission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The snapshot data of the current window is missing.
|
||||
**/
|
||||
SnapshotUnavailable: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many nomination targets supplied.
|
||||
**/
|
||||
|
||||
@@ -769,13 +769,9 @@ declare module '@polkadot/api/types/events' {
|
||||
**/
|
||||
Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
|
||||
/**
|
||||
* A new solution for the upcoming election has been stored. \[compute\]
|
||||
* A new set of stakers was elected.
|
||||
**/
|
||||
SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
|
||||
/**
|
||||
* A new set of stakers was elected with the given \[compute\].
|
||||
**/
|
||||
StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
|
||||
StakingElection: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* An account has unbonded this amount. \[stash, amount\]
|
||||
**/
|
||||
|
||||
@@ -24,7 +24,7 @@ import type { AccountId, AccountIndex, AssetId, Balance, BalanceOf, BlockNumber,
|
||||
import type { Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||
import type { ActiveEraInfo, ElectionPhase, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, ReadySolution, RewardDestination, RoundSnapshot, SeatHolder, SlashingSpans, SolutionOrSnapshotSize, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { ActiveEraInfo, ElectionPhase, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, ReadySolution, RewardDestination, RoundSnapshot, SeatHolder, SlashingSpans, SolutionOrSnapshotSize, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { AccountInfo, ConsumedWeight, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
|
||||
import type { Bounty, BountyIndex, OpenTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||
@@ -822,13 +822,6 @@ declare module '@polkadot/api/types/storage' {
|
||||
* The earliest era for which we have a pending, unapplied slash.
|
||||
**/
|
||||
earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Flag to control the execution of the offchain election. When `Open(_)`, we accept
|
||||
* solutions to be submitted.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
eraElectionStatus: AugmentedQuery<ApiType, () => Observable<ElectionStatus>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last `HISTORY_DEPTH` eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
@@ -903,13 +896,6 @@ declare module '@polkadot/api/types/storage' {
|
||||
* invulnerables) and restricted to testnets.
|
||||
**/
|
||||
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* True if the current **planned** session is final. Note that this does not take era
|
||||
* forcing into account.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
isCurrentSessionFinal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
||||
**/
|
||||
@@ -930,20 +916,6 @@ declare module '@polkadot/api/types/storage' {
|
||||
* Where the reward payment should be made. Keyed by stash.
|
||||
**/
|
||||
payee: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardDestination>, [AccountId]> & QueryableStorageEntry<ApiType, [AccountId]>;
|
||||
/**
|
||||
* The next validator set. At the end of an era, if this is available (potentially from the
|
||||
* result of an offchain worker), it is immediately used. Otherwise, the on-chain election
|
||||
* is executed.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
queuedElected: AugmentedQuery<ApiType, () => Observable<Option<ElectionResult>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The score of the current [`QueuedElected`].
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
queuedScore: AugmentedQuery<ApiType, () => Observable<Option<ElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Slashing spans for stash accounts.
|
||||
**/
|
||||
@@ -954,20 +926,6 @@ declare module '@polkadot/api/types/storage' {
|
||||
* The rest of the slashed value is handled by the `Slash`.
|
||||
**/
|
||||
slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Snapshot of nominators at the beginning of the current election window. This should only
|
||||
* have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
snapshotNominators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Snapshot of validators at the beginning of the current election window. This should only
|
||||
* have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
|
||||
*
|
||||
* TWO_PHASE_NOTE: should be removed once we switch to multi-phase.
|
||||
**/
|
||||
snapshotValidators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Records information about the maximum slash of a stash within a slashing span,
|
||||
* as well as how much reward has been paid out.
|
||||
@@ -977,7 +935,7 @@ declare module '@polkadot/api/types/storage' {
|
||||
* True if network has been upgraded to this version.
|
||||
* Storage version of the pallet.
|
||||
*
|
||||
* This is set to v5.0.0 for new networks.
|
||||
* This is set to v6.0.0 for new networks.
|
||||
**/
|
||||
storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -134,7 +134,7 @@ declare module '@polkadot/rpc-core/types.jsonrpc' {
|
||||
/**
|
||||
* Instructs the manual-seal authorship task to finalize a block
|
||||
**/
|
||||
finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification | string | Uint8Array) => Observable<bool>>;
|
||||
finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
|
||||
};
|
||||
eth: {
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ import type { AccountId, AccountIndex, AssetId, Balance, BalanceOf, BlockNumber,
|
||||
import type { Period, Priority } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { Keys } from '@polkadot/types/interfaces/session';
|
||||
import type { SocietyJudgement } from '@polkadot/types/interfaces/society';
|
||||
import type { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RawSolution, RewardDestination, SolutionOrSnapshotSize, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
|
||||
import type { EraIndex, RawSolution, RewardDestination, SolutionOrSnapshotSize, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
|
||||
import type { Key } from '@polkadot/types/interfaces/system';
|
||||
import type { BountyIndex } from '@polkadot/types/interfaces/treasury';
|
||||
import type { Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
@@ -2098,7 +2098,7 @@ declare module '@polkadot/api/types/submittable' {
|
||||
**/
|
||||
proxy: AugmentedSubmittable<(real: AccountId | string | Uint8Array, forceProxyType: Option<ProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, Option<ProxyType>, Call]>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||
* `add_proxy`.
|
||||
*
|
||||
* Removes any corresponding announcement(s).
|
||||
@@ -3155,70 +3155,6 @@ declare module '@polkadot/api/types/submittable' {
|
||||
* # </weight>
|
||||
**/
|
||||
setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Submit an election result to the chain. If the solution:
|
||||
*
|
||||
* 1. is valid.
|
||||
* 2. has a better score than a potentially existing solution on chain.
|
||||
*
|
||||
* then, it will be _put_ on chain.
|
||||
*
|
||||
* A solution consists of two pieces of data:
|
||||
*
|
||||
* 1. `winners`: a flat vector of all the winners of the round.
|
||||
* 2. `assignments`: the compact version of an assignment vector that encodes the edge
|
||||
* weights.
|
||||
*
|
||||
* Both of which may be computed using _phragmen_, or any other algorithm.
|
||||
*
|
||||
* Additionally, the submitter must provide:
|
||||
*
|
||||
* - The `score` that they claim their solution has.
|
||||
*
|
||||
* Both validators and nominators will be represented by indices in the solution. The
|
||||
* indices should respect the corresponding types ([`ValidatorIndex`] and
|
||||
* [`NominatorIndex`]). Moreover, they should be valid when used to index into
|
||||
* [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
|
||||
* solution to be rejected. These two storage items are set during the election window and
|
||||
* may be used to determine the indices.
|
||||
*
|
||||
* A solution is valid if:
|
||||
*
|
||||
* 0. It is submitted when [`EraElectionStatus`] is `Open`.
|
||||
* 1. Its claimed score is equal to the score computed on-chain.
|
||||
* 2. Presents the correct number of winners.
|
||||
* 3. All indexes must be value according to the snapshot vectors. All edge values must
|
||||
* also be correct and should not overflow the granularity of the ratio type (i.e. 256
|
||||
* or billion).
|
||||
* 4. For each edge, all targets are actually nominated by the voter.
|
||||
* 5. Has correct self-votes.
|
||||
*
|
||||
* A solutions score is consisted of 3 parameters:
|
||||
*
|
||||
* 1. `min { support.total }` for each support of a winner. This value should be maximized.
|
||||
* 2. `sum { support.total }` for each support of a winner. This value should be minimized.
|
||||
* 3. `sum { support.total^2 }` for each support of a winner. This value should be
|
||||
* minimized (to ensure less variance)
|
||||
*
|
||||
* # <weight>
|
||||
* The transaction is assumed to be the longest path, a better solution.
|
||||
* - Initial solution is almost the same.
|
||||
* - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
|
||||
* # </weight>
|
||||
**/
|
||||
submitElectionSolution: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
|
||||
/**
|
||||
* Unsigned version of `submit_election_solution`.
|
||||
*
|
||||
* Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
|
||||
* from the local node to be included. In other words, only the block author can include a
|
||||
* transaction in the block.
|
||||
*
|
||||
* # <weight>
|
||||
* See [`submit_election_solution`].
|
||||
* # </weight>
|
||||
**/
|
||||
submitElectionSolutionUnsigned: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
|
||||
/**
|
||||
* Schedule a portion of the stash to be unlocked ready for transfer out after the bond
|
||||
* period ends. If this leaves an amount actively bonded less than
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
// Simple non-runnable checks to test type definitions in the editor itself
|
||||
|
||||
import type { HeaderExtended } from '@polkadot/api-derive/types';
|
||||
import type { StorageKey } from '@polkadot/types';
|
||||
import type { AccountId, Balance, DispatchErrorModule, Event, Header, Index } from '@polkadot/types/interfaces';
|
||||
import type { AnyTuple, IExtrinsic, IMethod } from '@polkadot/types/types';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { HeaderExtended } from '@polkadot/api-derive';
|
||||
import { createTestPairs, TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
import { createTypeUnsafe, TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', version: '4.2.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/metadata",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Helpers to extract information from runtime metadata",
|
||||
"main": "index.js",
|
||||
@@ -16,9 +16,9 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@polkadot/types-known": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/types-known": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/util-crypto": "^6.0.5",
|
||||
"bn.js": "^4.11.9"
|
||||
|
||||
@@ -33,18 +33,18 @@ export class MetadataVersioned extends Struct {
|
||||
}, value as Map<unknown, unknown>);
|
||||
}
|
||||
|
||||
private _assertVersion (version: number): boolean {
|
||||
#assertVersion = (version: number): boolean => {
|
||||
assert(this.version <= version, `Cannot convert metadata from v${this.version} to v${version}`);
|
||||
|
||||
return this.version === version;
|
||||
}
|
||||
};
|
||||
|
||||
private _getVersion<T extends MetaMapped, F extends MetaMapped> (version: MetaVersions, fromPrev: (registry: Registry, input: F, metaVersion: number) => T): T {
|
||||
#getVersion = <T extends MetaMapped, F extends MetaMapped>(version: MetaVersions, fromPrev: (registry: Registry, input: F, metaVersion: number) => T): T => {
|
||||
const asCurr = `asV${version}` as MetaAsX;
|
||||
const asPrev = `asV${version - 1}` as MetaAsX;
|
||||
|
||||
if (this._assertVersion(version)) {
|
||||
return this._metadata[asCurr] as T;
|
||||
if (this.#assertVersion(version)) {
|
||||
return this.#metadata()[asCurr] as T;
|
||||
}
|
||||
|
||||
if (!this.#converted.has(version)) {
|
||||
@@ -52,6 +52,13 @@ export class MetadataVersioned extends Struct {
|
||||
}
|
||||
|
||||
return this.#converted.get(version) as T;
|
||||
};
|
||||
|
||||
/**
|
||||
* @description the metadata wrapped
|
||||
*/
|
||||
#metadata = (): MetadataAll => {
|
||||
return this.get('metadata') as MetadataAll;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,30 +75,30 @@ export class MetadataVersioned extends Struct {
|
||||
* @description Returns the wrapped metadata as a V9 object
|
||||
*/
|
||||
public get asV9 (): MetadataV9 {
|
||||
this._assertVersion(9);
|
||||
this.#assertVersion(9);
|
||||
|
||||
return this._metadata.asV9;
|
||||
return this.#metadata().asV9;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the wrapped values as a V10 object
|
||||
*/
|
||||
public get asV10 (): MetadataV10 {
|
||||
return this._getVersion(10, toV10);
|
||||
return this.#getVersion(10, toV10);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the wrapped values as a V11 object
|
||||
*/
|
||||
public get asV11 (): MetadataV11 {
|
||||
return this._getVersion(11, toV11);
|
||||
return this.#getVersion(11, toV11);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Returns the wrapped values as a V12 object
|
||||
*/
|
||||
public get asV12 (): MetadataV12 {
|
||||
return this._getVersion(12, toV12);
|
||||
return this.#getVersion(12, toV12);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -99,7 +106,7 @@ export class MetadataVersioned extends Struct {
|
||||
*/
|
||||
public get asLatest (): MetadataLatest {
|
||||
// This is non-existent & latest - applied here to do the module-specific type conversions
|
||||
return this._getVersion(13, toLatest);
|
||||
return this.#getVersion(13, toLatest);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -109,18 +116,11 @@ export class MetadataVersioned extends Struct {
|
||||
return this.get('magicNumber') as MagicNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description the metadata wrapped
|
||||
*/
|
||||
private get _metadata (): MetadataAll {
|
||||
return this.get('metadata') as MetadataAll;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description the metadata version this structure represents
|
||||
*/
|
||||
public get version (): number {
|
||||
return this._metadata.index;
|
||||
return this.#metadata().index;
|
||||
}
|
||||
|
||||
public getUniqTypes (throwError: boolean): string[] {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/metadata', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/metadata', version: '4.2.1' };
|
||||
|
||||
@@ -949,11 +949,9 @@
|
||||
"type": "u64",
|
||||
"value": "0x1400000000000000",
|
||||
"documentation": [
|
||||
" The number of **slots** that an epoch takes. We couple sessions to",
|
||||
" epochs, i.e. we start a new session once the new epoch begins.",
|
||||
" NOTE: Currently it is not possible to change the epoch duration",
|
||||
" after the chain has started. Attempting to do so will brick block",
|
||||
" production."
|
||||
" The amount of time, in slots, that each epoch should last.",
|
||||
" NOTE: Currently it is not possible to change the epoch duration after",
|
||||
" the chain has started. Attempting to do so will brick block production."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -969,7 +967,26 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"errors": [],
|
||||
"errors": [
|
||||
{
|
||||
"name": "InvalidEquivocationProof",
|
||||
"documentation": [
|
||||
" An equivocation proof provided as part of an equivocation report is invalid."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "InvalidKeyOwnershipProof",
|
||||
"documentation": [
|
||||
" A key ownership proof provided as part of an equivocation report is invalid."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DuplicateOffenceReport",
|
||||
"documentation": [
|
||||
" A given equivocation report is valid but already previously reported."
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
@@ -1970,7 +1987,7 @@
|
||||
{
|
||||
"name": "SolutionImprovementThreshold",
|
||||
"type": "Perbill",
|
||||
"value": "0x20a10700",
|
||||
"value": "0xa0860100",
|
||||
"documentation": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" (in any phase)."
|
||||
@@ -2463,102 +2480,18 @@
|
||||
" This is basically in sync with the call to [`SessionManager::new_session`]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotValidators",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "Vec<AccountId>"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot of validators at the beginning of the current election window. This should only",
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotNominators",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "Vec<AccountId>"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot of nominators at the beginning of the current election window. This should only",
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueuedElected",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "ElectionResult"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The next validator set. At the end of an era, if this is available (potentially from the",
|
||||
" result of an offchain worker), it is immediately used. Otherwise, the on-chain election",
|
||||
" is executed.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueuedScore",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "ElectionScore"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The score of the current [`QueuedElected`].",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "EraElectionStatus",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": "ElectionStatus"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Flag to control the execution of the offchain election. When `Open(_)`, we accept",
|
||||
" solutions to be submitted.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsCurrentSessionFinal",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": "bool"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" True if the current **planned** session is final. Note that this does not take era",
|
||||
" forcing into account.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "StorageVersion",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": "Releases"
|
||||
},
|
||||
"fallback": "0x04",
|
||||
"fallback": "0x05",
|
||||
"documentation": [
|
||||
" True if network has been upgraded to this version.",
|
||||
" Storage version of the pallet.",
|
||||
"",
|
||||
" This is set to v5.0.0 for new networks."
|
||||
" This is set to v6.0.0 for new networks."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -3163,118 +3096,6 @@
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "submit_election_solution",
|
||||
"args": [
|
||||
{
|
||||
"name": "winners",
|
||||
"type": "Vec<ValidatorIndex>"
|
||||
},
|
||||
{
|
||||
"name": "compact",
|
||||
"type": "CompactAssignments"
|
||||
},
|
||||
{
|
||||
"name": "score",
|
||||
"type": "ElectionScore"
|
||||
},
|
||||
{
|
||||
"name": "era",
|
||||
"type": "EraIndex"
|
||||
},
|
||||
{
|
||||
"name": "size",
|
||||
"type": "ElectionSize"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Submit an election result to the chain. If the solution:",
|
||||
"",
|
||||
" 1. is valid.",
|
||||
" 2. has a better score than a potentially existing solution on chain.",
|
||||
"",
|
||||
" then, it will be _put_ on chain.",
|
||||
"",
|
||||
" A solution consists of two pieces of data:",
|
||||
"",
|
||||
" 1. `winners`: a flat vector of all the winners of the round.",
|
||||
" 2. `assignments`: the compact version of an assignment vector that encodes the edge",
|
||||
" weights.",
|
||||
"",
|
||||
" Both of which may be computed using _phragmen_, or any other algorithm.",
|
||||
"",
|
||||
" Additionally, the submitter must provide:",
|
||||
"",
|
||||
" - The `score` that they claim their solution has.",
|
||||
"",
|
||||
" Both validators and nominators will be represented by indices in the solution. The",
|
||||
" indices should respect the corresponding types ([`ValidatorIndex`] and",
|
||||
" [`NominatorIndex`]). Moreover, they should be valid when used to index into",
|
||||
" [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the",
|
||||
" solution to be rejected. These two storage items are set during the election window and",
|
||||
" may be used to determine the indices.",
|
||||
"",
|
||||
" A solution is valid if:",
|
||||
"",
|
||||
" 0. It is submitted when [`EraElectionStatus`] is `Open`.",
|
||||
" 1. Its claimed score is equal to the score computed on-chain.",
|
||||
" 2. Presents the correct number of winners.",
|
||||
" 3. All indexes must be value according to the snapshot vectors. All edge values must",
|
||||
" also be correct and should not overflow the granularity of the ratio type (i.e. 256",
|
||||
" or billion).",
|
||||
" 4. For each edge, all targets are actually nominated by the voter.",
|
||||
" 5. Has correct self-votes.",
|
||||
"",
|
||||
" A solutions score is consisted of 3 parameters:",
|
||||
"",
|
||||
" 1. `min { support.total }` for each support of a winner. This value should be maximized.",
|
||||
" 2. `sum { support.total }` for each support of a winner. This value should be minimized.",
|
||||
" 3. `sum { support.total^2 }` for each support of a winner. This value should be",
|
||||
" minimized (to ensure less variance)",
|
||||
"",
|
||||
" # <weight>",
|
||||
" The transaction is assumed to be the longest path, a better solution.",
|
||||
" - Initial solution is almost the same.",
|
||||
" - Worse solution is retraced in pre-dispatch-checks which sets its own weight.",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "submit_election_solution_unsigned",
|
||||
"args": [
|
||||
{
|
||||
"name": "winners",
|
||||
"type": "Vec<ValidatorIndex>"
|
||||
},
|
||||
{
|
||||
"name": "compact",
|
||||
"type": "CompactAssignments"
|
||||
},
|
||||
{
|
||||
"name": "score",
|
||||
"type": "ElectionScore"
|
||||
},
|
||||
{
|
||||
"name": "era",
|
||||
"type": "EraIndex"
|
||||
},
|
||||
{
|
||||
"name": "size",
|
||||
"type": "ElectionSize"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Unsigned version of `submit_election_solution`.",
|
||||
"",
|
||||
" Note that this must pass the [`ValidateUnsigned`] check which only allows transactions",
|
||||
" from the local node to be included. In other words, only the block author can include a",
|
||||
" transaction in the block.",
|
||||
"",
|
||||
" # <weight>",
|
||||
" See [`submit_election_solution`].",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "kick",
|
||||
"args": [
|
||||
@@ -3347,20 +3168,9 @@
|
||||
},
|
||||
{
|
||||
"name": "StakingElection",
|
||||
"args": [
|
||||
"ElectionCompute"
|
||||
],
|
||||
"args": [],
|
||||
"documentation": [
|
||||
" A new set of stakers was elected with the given \\[compute\\]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SolutionStored",
|
||||
"args": [
|
||||
"ElectionCompute"
|
||||
],
|
||||
"documentation": [
|
||||
" A new solution for the upcoming election has been stored. \\[compute\\]"
|
||||
" A new set of stakers was elected."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -3437,38 +3247,6 @@
|
||||
" intervention."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ElectionLookahead",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x05000000",
|
||||
"documentation": [
|
||||
" The number of blocks before the end of the era from which election submissions are allowed.",
|
||||
"",
|
||||
" Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will",
|
||||
" be used.",
|
||||
"",
|
||||
" This is bounded by being within the last session. Hence, setting it to a value more than the",
|
||||
" length of a session will be pointless."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxIterations",
|
||||
"type": "u32",
|
||||
"value": "0x0a000000",
|
||||
"documentation": [
|
||||
" Maximum number of balancing iterations to run in the offchain submission.",
|
||||
"",
|
||||
" If set to 0, balance_solution will not be executed at all."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MinSolutionScoreBump",
|
||||
"type": "Perbill",
|
||||
"value": "0x20a10700",
|
||||
"documentation": [
|
||||
" The threshold of improvement that should be provided for a new solution to be accepted."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxNominatorRewardedPerValidator",
|
||||
"type": "u32",
|
||||
@@ -3572,93 +3350,6 @@
|
||||
" Rewards for this era have already been claimed for this validator."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionEarlySubmission",
|
||||
"documentation": [
|
||||
" The submitted result is received out of the open window."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionWeakSubmission",
|
||||
"documentation": [
|
||||
" The submitted result is not as good as the one stored on chain."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotUnavailable",
|
||||
"documentation": [
|
||||
" The snapshot data of the current window is missing."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusWinnerCount",
|
||||
"documentation": [
|
||||
" Incorrect number of winners were presented."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusWinner",
|
||||
"documentation": [
|
||||
" One of the submitted winners is not an active candidate on chain (index is out of range",
|
||||
" in snapshot)."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusCompact",
|
||||
"documentation": [
|
||||
" Error while building the assignment type from the compact. This can happen if an index",
|
||||
" is invalid, or if the weights _overflow_."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusNominator",
|
||||
"documentation": [
|
||||
" One of the submitted nominators is not an active nominator on chain."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusNomination",
|
||||
"documentation": [
|
||||
" One of the submitted nominators has an edge to which they have not voted on chain."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionSlashedNomination",
|
||||
"documentation": [
|
||||
" One of the submitted nominators has an edge which is submitted before the last non-zero",
|
||||
" slash of the target."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusSelfVote",
|
||||
"documentation": [
|
||||
" A self vote must only be originated from a validator to ONLY themselves."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusEdge",
|
||||
"documentation": [
|
||||
" The submitted result has unknown edges that are not among the presented winners."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusScore",
|
||||
"documentation": [
|
||||
" The claimed score does not match with the one computed from the data."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusElectionSize",
|
||||
"documentation": [
|
||||
" The election size is invalid."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CallNotAllowed",
|
||||
"documentation": [
|
||||
" The call is not allowed at the given time due to restrictions of election period."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IncorrectHistoryDepth",
|
||||
"documentation": [
|
||||
@@ -11397,7 +11088,7 @@
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Dispatch the given `call` from an account that the sender is authorised for through",
|
||||
" Dispatch the given `call` from an account that the sender is authorized for through",
|
||||
" `add_proxy`.",
|
||||
"",
|
||||
" Removes any corresponding announcement(s).",
|
||||
@@ -11458,7 +11149,10 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00f09e544c3900000000000000000000",
|
||||
"documentation": [
|
||||
" The base amount of currency needed to reserve for creating a proxy."
|
||||
" The base amount of currency needed to reserve for creating a proxy.",
|
||||
"",
|
||||
" This is held for an additional storage item whose value size is",
|
||||
" `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11466,7 +11160,11 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x0060aa7714b400000000000000000000",
|
||||
"documentation": [
|
||||
" The amount of currency needed per proxy added."
|
||||
" The amount of currency needed per proxy added.",
|
||||
"",
|
||||
" This is held for adding 32 bytes plus an instance of `ProxyType` more into a pre-existing",
|
||||
" storage value. Thus, when configuring `ProxyDepositFactor` one should take into account",
|
||||
" `32 + proxy_type.encode().len()` bytes of data."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11482,7 +11180,7 @@
|
||||
"type": "u32",
|
||||
"value": "0x20000000",
|
||||
"documentation": [
|
||||
" `MaxPending` metadata shadow."
|
||||
" The maximum amount of time-delayed announcements that are allowed to be pending."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11490,7 +11188,9 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00f09e544c3900000000000000000000",
|
||||
"documentation": [
|
||||
" `AnnouncementDepositBase` metadata shadow."
|
||||
" The base amount of currency needed to reserve for creating an announcement.",
|
||||
"",
|
||||
" This is held when a new storage item holding a `Balance` is created (typically 16 bytes)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11498,7 +11198,10 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00c054ef286801000000000000000000",
|
||||
"documentation": [
|
||||
" `AnnouncementDepositFactor` metadata shadow."
|
||||
" The amount of currency needed per announcement made.",
|
||||
"",
|
||||
" This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)",
|
||||
" into a pre-existing storage value."
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
@@ -16,10 +16,10 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/metadata": "4.1.1",
|
||||
"@polkadot/rpc-provider": "4.1.1",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/metadata": "4.2.1",
|
||||
"@polkadot/rpc-provider": "4.2.1",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/x-rxjs": "^6.0.5"
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '4.2.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
@@ -16,8 +16,8 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/util-crypto": "^6.0.5",
|
||||
"@polkadot/x-fetch": "^6.0.5",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.0.5",
|
||||
"@polkadot/metadata": "4.1.1",
|
||||
"@polkadot/metadata": "4.2.1",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.0.10"
|
||||
"nock": "^13.0.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '4.2.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
@@ -23,13 +23,13 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.13.8",
|
||||
"@babel/core": "^7.13.10",
|
||||
"@babel/register": "^7.13.8",
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/api": "4.1.1",
|
||||
"@polkadot/metadata": "4.1.1",
|
||||
"@polkadot/rpc-provider": "4.1.1",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/api": "4.2.1",
|
||||
"@polkadot/metadata": "4.2.1",
|
||||
"@polkadot/rpc-provider": "4.2.1",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.33",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', version: '4.2.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
@@ -16,9 +16,9 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/networks": "^6.0.5",
|
||||
"@polkadot/types": "4.1.1",
|
||||
"@polkadot/types": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', version: '4.2.1' };
|
||||
|
||||
@@ -9,10 +9,7 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const sharedTypes = {
|
||||
AccountInfo: 'AccountInfoWithDualRefCount',
|
||||
Address: 'MultiAddress',
|
||||
FullIdentification: '()', // No staking, only session (as per config)
|
||||
LookupSource: 'MultiAddress',
|
||||
Keys: 'SessionKeys6'
|
||||
};
|
||||
|
||||
@@ -21,12 +18,20 @@ const versioned: OverrideVersionedType[] = [
|
||||
minmax: [0, 200],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
AccountInfo: 'AccountInfoWithDualRefCount',
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [201, undefined],
|
||||
minmax: [201, 214],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
AccountInfo: 'AccountInfoWithDualRefCount'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [215, undefined],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "4.1.1",
|
||||
"version": "4.2.1",
|
||||
"type": "module",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
@@ -16,8 +16,8 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.9",
|
||||
"@polkadot/metadata": "4.1.1",
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/metadata": "4.2.1",
|
||||
"@polkadot/util": "^6.0.5",
|
||||
"@polkadot/util-crypto": "^6.0.5",
|
||||
"@polkadot/x-rxjs": "^6.0.5",
|
||||
|
||||
@@ -40,7 +40,7 @@ import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/ty
|
||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||
import type { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, CodecHash, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H512, H64, Hash, Header, I32F32, Index, IndicesLookupSource, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, Slot, StorageData, StorageProof, TransactionPriority, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, CodecHash, Consensus, ConsensusEngineId, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H512, H64, Hash, Header, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionPriority, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys7, SessionKeys8, SessionKeys9, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||
@@ -336,6 +336,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<ElectionSize>': Option<ElectionSize>;
|
||||
'Option<ElectionStatus>': Option<ElectionStatus>;
|
||||
'Option<EncodedFinalityProofs>': Option<EncodedFinalityProofs>;
|
||||
'Option<EncodedJustification>': Option<EncodedJustification>;
|
||||
'Option<EpochAuthorship>': Option<EpochAuthorship>;
|
||||
'Option<EraIndex>': Option<EraIndex>;
|
||||
'Option<EraPoints>': Option<EraPoints>;
|
||||
@@ -499,6 +500,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<Junction>': Option<Junction>;
|
||||
'Option<Justification>': Option<Justification>;
|
||||
'Option<JustificationNotification>': Option<JustificationNotification>;
|
||||
'Option<Justifications>': Option<Justifications>;
|
||||
'Option<Key>': Option<Key>;
|
||||
'Option<KeyOwnerProof>': Option<KeyOwnerProof>;
|
||||
'Option<Keys>': Option<Keys>;
|
||||
@@ -735,6 +737,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Option<SignedAvailabilityBitfield>': Option<SignedAvailabilityBitfield>;
|
||||
'Option<SignedAvailabilityBitfields>': Option<SignedAvailabilityBitfields>;
|
||||
'Option<SignedBlock>': Option<SignedBlock>;
|
||||
'Option<SignedBlockWithJustification>': Option<SignedBlockWithJustification>;
|
||||
'Option<SignedBlockWithJustifications>': Option<SignedBlockWithJustifications>;
|
||||
'Option<SignerPayload>': Option<SignerPayload>;
|
||||
'Option<SigningContext>': Option<SigningContext>;
|
||||
'Option<SiLookupTypeId>': Option<SiLookupTypeId>;
|
||||
@@ -1086,6 +1090,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<ElectionSize>': Vec<ElectionSize>;
|
||||
'Vec<ElectionStatus>': Vec<ElectionStatus>;
|
||||
'Vec<EncodedFinalityProofs>': Vec<EncodedFinalityProofs>;
|
||||
'Vec<EncodedJustification>': Vec<EncodedJustification>;
|
||||
'Vec<EpochAuthorship>': Vec<EpochAuthorship>;
|
||||
'Vec<EraIndex>': Vec<EraIndex>;
|
||||
'Vec<EraPoints>': Vec<EraPoints>;
|
||||
@@ -1249,6 +1254,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<Junction>': Vec<Junction>;
|
||||
'Vec<Justification>': Vec<Justification>;
|
||||
'Vec<JustificationNotification>': Vec<JustificationNotification>;
|
||||
'Vec<Justifications>': Vec<Justifications>;
|
||||
'Vec<Key>': Vec<Key>;
|
||||
'Vec<KeyOwnerProof>': Vec<KeyOwnerProof>;
|
||||
'Vec<Keys>': Vec<Keys>;
|
||||
@@ -1485,6 +1491,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
'Vec<SignedAvailabilityBitfield>': Vec<SignedAvailabilityBitfield>;
|
||||
'Vec<SignedAvailabilityBitfields>': Vec<SignedAvailabilityBitfields>;
|
||||
'Vec<SignedBlock>': Vec<SignedBlock>;
|
||||
'Vec<SignedBlockWithJustification>': Vec<SignedBlockWithJustification>;
|
||||
'Vec<SignedBlockWithJustifications>': Vec<SignedBlockWithJustifications>;
|
||||
'Vec<SignerPayload>': Vec<SignerPayload>;
|
||||
'Vec<SigningContext>': Vec<SigningContext>;
|
||||
'Vec<SiLookupTypeId>': Vec<SiLookupTypeId>;
|
||||
@@ -1836,6 +1844,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ElectionSize: ElectionSize;
|
||||
ElectionStatus: ElectionStatus;
|
||||
EncodedFinalityProofs: EncodedFinalityProofs;
|
||||
EncodedJustification: EncodedJustification;
|
||||
EpochAuthorship: EpochAuthorship;
|
||||
EraIndex: EraIndex;
|
||||
EraPoints: EraPoints;
|
||||
@@ -1999,6 +2008,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
Junction: Junction;
|
||||
Justification: Justification;
|
||||
JustificationNotification: JustificationNotification;
|
||||
Justifications: Justifications;
|
||||
Key: Key;
|
||||
KeyOwnerProof: KeyOwnerProof;
|
||||
Keys: Keys;
|
||||
@@ -2235,6 +2245,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
SignedAvailabilityBitfield: SignedAvailabilityBitfield;
|
||||
SignedAvailabilityBitfields: SignedAvailabilityBitfields;
|
||||
SignedBlock: SignedBlock;
|
||||
SignedBlockWithJustification: SignedBlockWithJustification;
|
||||
SignedBlockWithJustifications: SignedBlockWithJustifications;
|
||||
SignerPayload: SignerPayload;
|
||||
SigningContext: SigningContext;
|
||||
SiLookupTypeId: SiLookupTypeId;
|
||||
|
||||
@@ -79,7 +79,9 @@ export default {
|
||||
},
|
||||
IndicesLookupSource: 'GenericLookupSource',
|
||||
Index: 'u32',
|
||||
Justification: 'Bytes',
|
||||
Justification: '(ConsensusEngineId, EncodedJustification)',
|
||||
EncodedJustification: 'Bytes',
|
||||
Justifications: 'Vec<Justification>',
|
||||
KeyValue: '(StorageKey, StorageData)',
|
||||
KeyTypeId: 'u32',
|
||||
LockIdentifier: '[u8; 8]',
|
||||
@@ -121,9 +123,14 @@ export default {
|
||||
read: 'Weight',
|
||||
write: 'Weight'
|
||||
},
|
||||
SignedBlock: {
|
||||
SignedBlock: 'SignedBlockWithJustifications',
|
||||
SignedBlockWithJustification: {
|
||||
block: 'Block',
|
||||
justification: 'Justification'
|
||||
justification: 'Option<EncodedJustification>'
|
||||
},
|
||||
SignedBlockWithJustifications: {
|
||||
block: 'Block',
|
||||
justifications: 'Option<Justifications>'
|
||||
},
|
||||
Slot: 'u64',
|
||||
StorageData: 'Bytes',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Compact, DoNotConstruct, Enum, GenericAccountId, GenericAccountIndex, GenericBlock, GenericCall, GenericConsensusEngineId, GenericLookupSource, GenericMultiAddress, Int, Null, StorageKey, Struct, U8aFixed, UInt, Vec, u16, u32, u64, u8 } from '@polkadot/types';
|
||||
import type { Bytes, Compact, DoNotConstruct, Enum, GenericAccountId, GenericAccountIndex, GenericBlock, GenericCall, GenericConsensusEngineId, GenericLookupSource, GenericMultiAddress, Int, Null, Option, StorageKey, Struct, U8aFixed, UInt, Vec, u16, u32, u64, u8 } from '@polkadot/types';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
@@ -81,6 +81,9 @@ export interface DigestItem extends Enum {
|
||||
readonly asPreRuntime: PreRuntime;
|
||||
}
|
||||
|
||||
/** @name EncodedJustification */
|
||||
export interface EncodedJustification extends Bytes {}
|
||||
|
||||
/** @name ExtrinsicsWeight */
|
||||
export interface ExtrinsicsWeight extends Struct {
|
||||
readonly normal: Weight;
|
||||
@@ -148,7 +151,10 @@ export interface Index extends u32 {}
|
||||
export interface IndicesLookupSource extends GenericLookupSource {}
|
||||
|
||||
/** @name Justification */
|
||||
export interface Justification extends Bytes {}
|
||||
export interface Justification extends ITuple<[ConsensusEngineId, EncodedJustification]> {}
|
||||
|
||||
/** @name Justifications */
|
||||
export interface Justifications extends Vec<Justification> {}
|
||||
|
||||
/** @name KeyTypeId */
|
||||
export interface KeyTypeId extends u32 {}
|
||||
@@ -263,9 +269,18 @@ export interface Seal extends ITuple<[ConsensusEngineId, Bytes]> {}
|
||||
export interface SealV0 extends ITuple<[u64, Signature]> {}
|
||||
|
||||
/** @name SignedBlock */
|
||||
export interface SignedBlock extends Struct {
|
||||
export interface SignedBlock extends SignedBlockWithJustifications {}
|
||||
|
||||
/** @name SignedBlockWithJustification */
|
||||
export interface SignedBlockWithJustification extends Struct {
|
||||
readonly block: Block;
|
||||
readonly justification: Justification;
|
||||
readonly justification: Option<EncodedJustification>;
|
||||
}
|
||||
|
||||
/** @name SignedBlockWithJustifications */
|
||||
export interface SignedBlockWithJustifications extends Struct {
|
||||
readonly block: Block;
|
||||
readonly justifications: Option<Justifications>;
|
||||
}
|
||||
|
||||
/** @name Slot */
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', version: '4.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', version: '4.2.1' };
|
||||
|
||||
@@ -5,9 +5,9 @@ __metadata:
|
||||
version: 4
|
||||
cacheKey: 7
|
||||
|
||||
"@babel/cli@npm:^7.13.0":
|
||||
version: 7.13.0
|
||||
resolution: "@babel/cli@npm:7.13.0"
|
||||
"@babel/cli@npm:^7.13.10":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/cli@npm:7.13.10"
|
||||
dependencies:
|
||||
"@nicolo-ribaudo/chokidar-2": 2.1.8-no-fsevents
|
||||
chokidar: ^3.4.0
|
||||
@@ -29,7 +29,7 @@ __metadata:
|
||||
bin:
|
||||
babel: ./bin/babel.js
|
||||
babel-external-helpers: ./bin/babel-external-helpers.js
|
||||
checksum: a887d985e45a5b97e0d6b4ae403d63033ad8b539b86d1d77b98f1766b2bc219e09797b36eedb03fc9d35f61622b108a38111c5e55d7bf7101de74d788335cf00
|
||||
checksum: 2b79fb80de05c11ae88a221d536da7b5d2073d4dd85beec808a31facba56580a5da8f1ad85b13a91b348651d18a41a43751533ff2edb89ac3c255c61525fe6dc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -58,16 +58,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/core@npm:7.13.8, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.8, @babel/core@npm:^7.7.5":
|
||||
version: 7.13.8
|
||||
resolution: "@babel/core@npm:7.13.8"
|
||||
"@babel/core@npm:7.13.10, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.10, @babel/core@npm:^7.7.5":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/core@npm:7.13.10"
|
||||
dependencies:
|
||||
"@babel/code-frame": ^7.12.13
|
||||
"@babel/generator": ^7.13.0
|
||||
"@babel/helper-compilation-targets": ^7.13.8
|
||||
"@babel/generator": ^7.13.9
|
||||
"@babel/helper-compilation-targets": ^7.13.10
|
||||
"@babel/helper-module-transforms": ^7.13.0
|
||||
"@babel/helpers": ^7.13.0
|
||||
"@babel/parser": ^7.13.4
|
||||
"@babel/helpers": ^7.13.10
|
||||
"@babel/parser": ^7.13.10
|
||||
"@babel/template": ^7.12.13
|
||||
"@babel/traverse": ^7.13.0
|
||||
"@babel/types": ^7.13.0
|
||||
@@ -78,18 +78,18 @@ __metadata:
|
||||
lodash: ^4.17.19
|
||||
semver: ^6.3.0
|
||||
source-map: ^0.5.0
|
||||
checksum: f3c61e635aa41e127775d1191a65aedd4cf90008625eb93ddbd86214ebae6b0793cefd10503b2a4df8aa510d0e1108dfd15e29bde9bbffc899a50015f56f49c4
|
||||
checksum: 728249a0bae293547d987e4d9886a14dda663d8cb629eb59c9d9ad3ee455048c2ccc3858c82305229ad4a415c2f39579abaa3982b653d40de348c39a3beb5e4d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/generator@npm:^7.13.0":
|
||||
version: 7.13.0
|
||||
resolution: "@babel/generator@npm:7.13.0"
|
||||
"@babel/generator@npm:^7.13.0, @babel/generator@npm:^7.13.9":
|
||||
version: 7.13.9
|
||||
resolution: "@babel/generator@npm:7.13.9"
|
||||
dependencies:
|
||||
"@babel/types": ^7.13.0
|
||||
jsesc: ^2.5.1
|
||||
source-map: ^0.5.0
|
||||
checksum: d406238edc9e967e5a5013b9c7cf02d9eb4ea0160cd209cb63edb39a095d392b007e6762acb65ae79958a8bc0cf94945155b34dbcb2dfc93df1159881c217148
|
||||
checksum: d9cf7db910dd703a55c3ba147a8024564d51de06f5e3e61aef6ca197bcd80a6cb0a633fe4688c8c9f6226c70ee6f32a747050a8e420972b45cc98a6b3fc5ae66
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -112,9 +112,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-compilation-targets@npm:^7.13.0, @babel/helper-compilation-targets@npm:^7.13.8":
|
||||
version: 7.13.8
|
||||
resolution: "@babel/helper-compilation-targets@npm:7.13.8"
|
||||
"@babel/helper-compilation-targets@npm:^7.13.0, @babel/helper-compilation-targets@npm:^7.13.10, @babel/helper-compilation-targets@npm:^7.13.8":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/helper-compilation-targets@npm:7.13.10"
|
||||
dependencies:
|
||||
"@babel/compat-data": ^7.13.8
|
||||
"@babel/helper-validator-option": ^7.12.17
|
||||
@@ -122,7 +122,7 @@ __metadata:
|
||||
semver: ^6.3.0
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0
|
||||
checksum: dbee371e5ff226bb03a036d1af858f038ab6e71fac1ff5014bf69411b71af187bcdb0e49d5352ec5ef5e83186c9b88ee83b74295ba900691095b31017ec59f89
|
||||
checksum: 80eb7a380d01d785de42006370e13bbda63b76745a8da1c68dcbf3dc4bff630bd9db8a76cf3053628c61d91c1452328a4ad9a8d9fc24ed65c02f635327234678
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -337,14 +337,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helpers@npm:^7.13.0":
|
||||
version: 7.13.0
|
||||
resolution: "@babel/helpers@npm:7.13.0"
|
||||
"@babel/helpers@npm:^7.13.10":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/helpers@npm:7.13.10"
|
||||
dependencies:
|
||||
"@babel/template": ^7.12.13
|
||||
"@babel/traverse": ^7.13.0
|
||||
"@babel/types": ^7.13.0
|
||||
checksum: 6c435aefe108e85b999570eed9fc2ec10944cb1ed4c3ff6656936c90a6f986174bd5c80ec48ecbbb7042e5eca5761364f484d7e0238a3aa77c2f5099dcac8df0
|
||||
checksum: 1bc93126957b51108080ab1aa24997a9a10d5f395de54621ce9df7825cdbce878ad9d26886c927c3d9bcfd75d24972037ed5fb904fcd83fb92e5c8f8628f6b40
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -359,12 +359,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.13.0, @babel/parser@npm:^7.13.4":
|
||||
version: 7.13.4
|
||||
resolution: "@babel/parser@npm:7.13.4"
|
||||
"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.13.0, @babel/parser@npm:^7.13.10":
|
||||
version: 7.13.11
|
||||
resolution: "@babel/parser@npm:7.13.11"
|
||||
bin:
|
||||
parser: ./bin/babel-parser.js
|
||||
checksum: 3aac62adbd1fd91798751a09b385ed3810acffb7bd637066bea65acf16670fdc8c7c39bab2148c57b4d6606355344de01922c9aba86405c771eaabc58701077a
|
||||
checksum: 3ab6f6097efc72ac9212831f8f1c17fbcf9f0a6d1b12fa2486a51db4674cf3e86674d0ff62ba789933703119e69ac5daf8d1bb9e400eb4a613df8b0103104ab6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1051,9 +1051,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/plugin-transform-runtime@npm:^7.13.9":
|
||||
version: 7.13.9
|
||||
resolution: "@babel/plugin-transform-runtime@npm:7.13.9"
|
||||
"@babel/plugin-transform-runtime@npm:^7.13.10":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/plugin-transform-runtime@npm:7.13.10"
|
||||
dependencies:
|
||||
"@babel/helper-module-imports": ^7.12.13
|
||||
"@babel/helper-plugin-utils": ^7.13.0
|
||||
@@ -1063,7 +1063,7 @@ __metadata:
|
||||
semver: ^6.3.0
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0-0
|
||||
checksum: 79fd9e6ff154c6005acd1478a5e5c44b4d33ef9d96f67b83dabba59ad816a7ea5b77800ff222fd565c4e6178831165d4bc848bc07c1d88c5deaa67609af58682
|
||||
checksum: 2b36d86770696e80bf1aed9f97d4d7bb684a6dc1bb407f2da607a13f190fd1feed06a454a6f89d6d60da9bc554c3aef942f5ad307217a48ac9ddcf8edd57894e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1159,12 +1159,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/preset-env@npm:^7.13.9":
|
||||
version: 7.13.9
|
||||
resolution: "@babel/preset-env@npm:7.13.9"
|
||||
"@babel/preset-env@npm:^7.13.10":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/preset-env@npm:7.13.10"
|
||||
dependencies:
|
||||
"@babel/compat-data": ^7.13.8
|
||||
"@babel/helper-compilation-targets": ^7.13.8
|
||||
"@babel/helper-compilation-targets": ^7.13.10
|
||||
"@babel/helper-plugin-utils": ^7.13.0
|
||||
"@babel/helper-validator-option": ^7.12.17
|
||||
"@babel/plugin-proposal-async-generator-functions": ^7.13.8
|
||||
@@ -1233,7 +1233,7 @@ __metadata:
|
||||
semver: ^6.3.0
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0-0
|
||||
checksum: 55ef45c648da2cf98d703a3f5128eeb883285580f02717059c1ac708ac8cb291e40705838dfdd4f4c59da3c96b816c13e2d2d0d9a7490e3bace4cf41ec8ba151
|
||||
checksum: 1f23eb25dea448fd75a3e525f71181d535d2884fe50c7fbb9aa29918b997a7d92ba27cfb55f8b4070bc1b0507ab3d2d7ba9ee612a972e0f0b7447d4455d2b447
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1295,12 +1295,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.8.4":
|
||||
version: 7.13.9
|
||||
resolution: "@babel/runtime@npm:7.13.9"
|
||||
"@babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.8.4":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/runtime@npm:7.13.10"
|
||||
dependencies:
|
||||
regenerator-runtime: ^0.13.4
|
||||
checksum: e6f79d20e10c2921520c499f3cf295a9ee5c137e73f77f77eedde9f9073bc3541c1fc7fa6c97b0613f4140303ac00d08506e9f090068d219c58781d2b62c662d
|
||||
checksum: 22014226b96a8c8e8d4e8bcdb011f317d1b32881aef424a669dc6ceaee14993d3609172967853cbf9c25c724c25145d45885b6c9df56ba241c12820776607f1f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1777,25 +1777,25 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/api": 4.1.1
|
||||
"@polkadot/types": 4.1.1
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/api": 4.2.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/x-rxjs": ^6.0.5
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@4.1.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@4.2.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.13.9
|
||||
"@polkadot/api": 4.1.1
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/api": 4.2.1
|
||||
"@polkadot/keyring": ^6.0.5
|
||||
"@polkadot/rpc-core": 4.1.1
|
||||
"@polkadot/rpc-provider": 4.1.1
|
||||
"@polkadot/types": 4.1.1
|
||||
"@polkadot/rpc-core": 4.2.1
|
||||
"@polkadot/rpc-provider": 4.2.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/util-crypto": ^6.0.5
|
||||
"@polkadot/x-rxjs": ^6.0.5
|
||||
@@ -1803,18 +1803,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@4.1.1, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@4.2.1, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/api-derive": 4.1.1
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/api-derive": 4.2.1
|
||||
"@polkadot/keyring": ^6.0.5
|
||||
"@polkadot/metadata": 4.1.1
|
||||
"@polkadot/rpc-core": 4.1.1
|
||||
"@polkadot/rpc-provider": 4.1.1
|
||||
"@polkadot/types": 4.1.1
|
||||
"@polkadot/types-known": 4.1.1
|
||||
"@polkadot/metadata": 4.2.1
|
||||
"@polkadot/rpc-core": 4.2.1
|
||||
"@polkadot/rpc-provider": 4.2.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/types-known": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/util-crypto": ^6.0.5
|
||||
"@polkadot/x-rxjs": ^6.0.5
|
||||
@@ -1823,12 +1823,12 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/dev@npm:^0.62.5":
|
||||
version: 0.62.5
|
||||
resolution: "@polkadot/dev@npm:0.62.5"
|
||||
"@polkadot/dev@npm:^0.62.6":
|
||||
version: 0.62.6
|
||||
resolution: "@polkadot/dev@npm:0.62.6"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.13.0
|
||||
"@babel/core": ^7.13.8
|
||||
"@babel/cli": ^7.13.10
|
||||
"@babel/core": ^7.13.10
|
||||
"@babel/plugin-proposal-class-properties": ^7.13.0
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.13.8
|
||||
"@babel/plugin-proposal-numeric-separator": ^7.12.13
|
||||
@@ -1840,15 +1840,15 @@ __metadata:
|
||||
"@babel/plugin-syntax-import-meta": ^7.10.4
|
||||
"@babel/plugin-syntax-top-level-await": ^7.12.13
|
||||
"@babel/plugin-transform-regenerator": ^7.12.13
|
||||
"@babel/plugin-transform-runtime": ^7.13.9
|
||||
"@babel/preset-env": ^7.13.9
|
||||
"@babel/plugin-transform-runtime": ^7.13.10
|
||||
"@babel/preset-env": ^7.13.10
|
||||
"@babel/preset-react": ^7.12.13
|
||||
"@babel/preset-typescript": ^7.13.0
|
||||
"@babel/register": ^7.13.8
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@rushstack/eslint-patch": ^1.0.6
|
||||
"@typescript-eslint/eslint-plugin": 4.16.1
|
||||
"@typescript-eslint/parser": 4.16.1
|
||||
"@typescript-eslint/eslint-plugin": 4.18.0
|
||||
"@typescript-eslint/parser": 4.18.0
|
||||
"@vue/component-compiler-utils": ^3.2.0
|
||||
babel-jest: ^26.6.3
|
||||
babel-plugin-module-extension-resolver: ^1.0.0-rc.2
|
||||
@@ -1857,7 +1857,7 @@ __metadata:
|
||||
browserslist: ^4.16.3
|
||||
chalk: ^4.1.0
|
||||
coveralls: ^3.1.0
|
||||
eslint: ^7.21.0
|
||||
eslint: ^7.22.0
|
||||
eslint-config-standard: ^16.0.2
|
||||
eslint-import-resolver-node: ^0.3.4
|
||||
eslint-plugin-header: ^3.1.1
|
||||
@@ -1878,15 +1878,12 @@ __metadata:
|
||||
jest-config: ^26.6.3
|
||||
jest-haste-map: ^26.6.2
|
||||
jest-resolve: ^26.6.2
|
||||
madge: ^4.0.0
|
||||
madge: ^4.0.2
|
||||
minimatch: ^3.0.4
|
||||
mkdirp: ^1.0.4
|
||||
prettier: ^2.2.1
|
||||
rimraf: ^3.0.2
|
||||
typedoc: ^0.20.28
|
||||
typedoc-plugin-markdown: ^3.6.0
|
||||
typedoc-plugin-no-inherit: ^1.2.0
|
||||
typescript: ^4.2.2
|
||||
typescript: ^4.2.3
|
||||
yargs: ^16.2.0
|
||||
bin:
|
||||
polkadot-ci-ghact-build: scripts/polkadot-ci-ghact-build.cjs
|
||||
@@ -1907,9 +1904,8 @@ __metadata:
|
||||
polkadot-exec-ghrelease: scripts/polkadot-exec-ghrelease.cjs
|
||||
polkadot-exec-prettier: scripts/polkadot-exec-prettier.cjs
|
||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.cjs
|
||||
polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.cjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.cjs
|
||||
checksum: 3eebdb2aa259d9b16243a1d4ebc7c7d7133b6ff2c9c199407d8fc06168f137e10a805089b6f0b38a16dce17372ddef48cc48fd0d484fe27c0960d8fe4d2b2016
|
||||
checksum: b9de7eafc65ebd6879bbc35120613dc7711c189287096c28eb233ee44cf3a082f9a17a7cbaa91e375198ca74584fd9c4779e3fb967cd6019a79bf1bc9d160b35
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1927,14 +1923,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/metadata@4.1.1, @polkadot/metadata@workspace:packages/metadata":
|
||||
"@polkadot/metadata@4.2.1, @polkadot/metadata@workspace:packages/metadata":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/metadata@workspace:packages/metadata"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/keyring": ^6.0.5
|
||||
"@polkadot/types": 4.1.1
|
||||
"@polkadot/types-known": 4.1.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/types-known": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/util-crypto": ^6.0.5
|
||||
bn.js: ^4.11.9
|
||||
@@ -1950,28 +1946,28 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-core@4.1.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@4.2.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.13.9
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/keyring": ^6.0.5
|
||||
"@polkadot/metadata": 4.1.1
|
||||
"@polkadot/rpc-provider": 4.1.1
|
||||
"@polkadot/types": 4.1.1
|
||||
"@polkadot/metadata": 4.2.1
|
||||
"@polkadot/rpc-provider": 4.2.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/x-rxjs": ^6.0.5
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@4.1.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@4.2.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.13.9
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/keyring": ^6.0.5
|
||||
"@polkadot/metadata": 4.1.1
|
||||
"@polkadot/types": 4.1.1
|
||||
"@polkadot/metadata": 4.2.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/util-crypto": ^6.0.5
|
||||
"@polkadot/x-fetch": ^6.0.5
|
||||
@@ -1980,7 +1976,7 @@ __metadata:
|
||||
bn.js: ^4.11.9
|
||||
eventemitter3: ^4.0.7
|
||||
mock-socket: ^9.0.3
|
||||
nock: ^13.0.10
|
||||
nock: ^13.0.11
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -1997,13 +1993,13 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/typegen@workspace:packages/typegen"
|
||||
dependencies:
|
||||
"@babel/core": ^7.13.8
|
||||
"@babel/core": ^7.13.10
|
||||
"@babel/register": ^7.13.8
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/api": 4.1.1
|
||||
"@polkadot/metadata": 4.1.1
|
||||
"@polkadot/rpc-provider": 4.1.1
|
||||
"@polkadot/types": 4.1.1
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/api": 4.2.1
|
||||
"@polkadot/metadata": 4.2.1
|
||||
"@polkadot/rpc-provider": 4.2.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@types/websocket": ^1.0.2
|
||||
"@types/yargs": ^16.0.0
|
||||
@@ -2019,26 +2015,26 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@4.1.1, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@4.2.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.13.9
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/networks": ^6.0.5
|
||||
"@polkadot/types": 4.1.1
|
||||
"@polkadot/types": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@4.1.1, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@4.2.1, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/keyring": ^6.0.5
|
||||
"@polkadot/metadata": 4.1.1
|
||||
"@polkadot/metadata": 4.2.1
|
||||
"@polkadot/util": ^6.0.5
|
||||
"@polkadot/util-crypto": ^6.0.5
|
||||
"@polkadot/x-rxjs": ^6.0.5
|
||||
@@ -2353,13 +2349,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/jest@npm:^26.0.20":
|
||||
version: 26.0.20
|
||||
resolution: "@types/jest@npm:26.0.20"
|
||||
"@types/jest@npm:^26.0.21":
|
||||
version: 26.0.21
|
||||
resolution: "@types/jest@npm:26.0.21"
|
||||
dependencies:
|
||||
jest-diff: ^26.0.0
|
||||
pretty-format: ^26.0.0
|
||||
checksum: 221e39c7c9ce8d71ae4b2ba6abeef1a5b04f1cd96419b9fbbb65534bef4c4215b650561183073dcf47584ff1888d1f4fa7d2af2a38492b7feb9a3bfdcd24c44f
|
||||
checksum: c219599d663527302a261aaa7cc038b79c428d7af39b0a20c2167cb698ae280f3a238b2ca3594bcabbe7ee441a6370d4b3afd19c4a616aaa5556d5b9e875c081
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2467,12 +2463,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/eslint-plugin@npm:4.16.1":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:4.16.1"
|
||||
"@typescript-eslint/eslint-plugin@npm:4.18.0":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:4.18.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/experimental-utils": 4.16.1
|
||||
"@typescript-eslint/scope-manager": 4.16.1
|
||||
"@typescript-eslint/experimental-utils": 4.18.0
|
||||
"@typescript-eslint/scope-manager": 4.18.0
|
||||
debug: ^4.1.1
|
||||
functional-red-black-tree: ^1.0.1
|
||||
lodash: ^4.17.15
|
||||
@@ -2485,66 +2481,66 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 873347906fdfe9a70dc80b80f1cbcc6dff00fae5a367ec186e52c6ce616941aa757cd5bc8dbba706f86633df4af396e6c33d68b890983444417a3e76a94c9ad4
|
||||
checksum: f137baf23f42345986a3570016ef0bacfff9f1e973f87962e09b826dde26b2f3d4c383a2b22839d2cd46baeb54753ac52c8837d41aa6caaf2ce122efdefea689
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/experimental-utils@npm:4.16.1":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/experimental-utils@npm:4.16.1"
|
||||
"@typescript-eslint/experimental-utils@npm:4.18.0":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/experimental-utils@npm:4.18.0"
|
||||
dependencies:
|
||||
"@types/json-schema": ^7.0.3
|
||||
"@typescript-eslint/scope-manager": 4.16.1
|
||||
"@typescript-eslint/types": 4.16.1
|
||||
"@typescript-eslint/typescript-estree": 4.16.1
|
||||
"@typescript-eslint/scope-manager": 4.18.0
|
||||
"@typescript-eslint/types": 4.18.0
|
||||
"@typescript-eslint/typescript-estree": 4.18.0
|
||||
eslint-scope: ^5.0.0
|
||||
eslint-utils: ^2.0.0
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
checksum: 526ca13632841963ed29fcd3688ff300d5ee3ecd442b8e1e540bee7fe09e4595cd43da7aa6c3c5f27c8876f55c823b4fd34e9639ceaf1f8af2a5db4561c57e82
|
||||
checksum: 1f1357b38aa6e1dc9088abec1c259372ff124be215644283df1725421c3faeeb90ca463c5e549247f10918d18031cd56b58b366d22a5c90e23f601826d1d7f3a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/parser@npm:4.16.1":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/parser@npm:4.16.1"
|
||||
"@typescript-eslint/parser@npm:4.18.0":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/parser@npm:4.18.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/scope-manager": 4.16.1
|
||||
"@typescript-eslint/types": 4.16.1
|
||||
"@typescript-eslint/typescript-estree": 4.16.1
|
||||
"@typescript-eslint/scope-manager": 4.18.0
|
||||
"@typescript-eslint/types": 4.18.0
|
||||
"@typescript-eslint/typescript-estree": 4.18.0
|
||||
debug: ^4.1.1
|
||||
peerDependencies:
|
||||
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 9ce7c8b2ec9679c6428b44fe06f6a56f145b54b72549691d97e3d6a4ffd0fc116ca61bdef695e77c3217fc30f2988434078e09009ab2dc5ec028e6f3cecb9a16
|
||||
checksum: d2f907dc2888078fa6aaca329e39209cc0ceff0dfe43657835b9fbd73678d848077572fdf451dd0cae4ea199b8bfa0f3791037bd9174049668914c7a8ac55157
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/scope-manager@npm:4.16.1":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/scope-manager@npm:4.16.1"
|
||||
"@typescript-eslint/scope-manager@npm:4.18.0":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/scope-manager@npm:4.18.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 4.16.1
|
||||
"@typescript-eslint/visitor-keys": 4.16.1
|
||||
checksum: 2872ae6b3c1afe6d0de2168cf4c14864ac6183de8db081f8efc236a4a6f6448d59f80abc529ab3b50b48b8a9a5b21c4bacbad8936a384ca3c2f1bb4b950fd4de
|
||||
"@typescript-eslint/types": 4.18.0
|
||||
"@typescript-eslint/visitor-keys": 4.18.0
|
||||
checksum: c543d4bf73ad0193cca7303c376f15b099ee861be492a210cfc19909d2ec828b7dc898a59e17c89cc91e4cc2ea450731a83671d136cd995fb9b77f8a7db4d440
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/types@npm:4.16.1":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/types@npm:4.16.1"
|
||||
checksum: 5df220b8dff372540921d8ef478f4107e6eb51824e7346c942dafc2d181cd937983fa80f44c2e94abf28b57a303e72205915d2bca13ac37c028a98710fd37baa
|
||||
"@typescript-eslint/types@npm:4.18.0":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/types@npm:4.18.0"
|
||||
checksum: 45d3df0c4993ceab017df2a4502bb2e3d9b21e6554997a539b88dfa5899c83bf6156a823d15eeb679e65dec15ab07ff371c6e5c09f98c166ed94f79a8223ffab
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/typescript-estree@npm:4.16.1, @typescript-eslint/typescript-estree@npm:^4.8.2":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:4.16.1"
|
||||
"@typescript-eslint/typescript-estree@npm:4.18.0, @typescript-eslint/typescript-estree@npm:^4.8.2":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:4.18.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 4.16.1
|
||||
"@typescript-eslint/visitor-keys": 4.16.1
|
||||
"@typescript-eslint/types": 4.18.0
|
||||
"@typescript-eslint/visitor-keys": 4.18.0
|
||||
debug: ^4.1.1
|
||||
globby: ^11.0.1
|
||||
is-glob: ^4.0.1
|
||||
@@ -2553,17 +2549,17 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: d09de17eb15f08a44574d62a3eadcacd6d331372bd7525cfb7d08d9caeb8d09c2f5a195927ea48a71996337baab47bf9c7d50549c160b901be6a6bc1df9c3f39
|
||||
checksum: b77e150d281d50aad89f915c05310b5f94fa2b1fc64eada20460d8a7f10c42d4c2a5ccffe185f128c965fc9bd209f77a0df8e1779af18b0a3a383241564ecc4b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/visitor-keys@npm:4.16.1":
|
||||
version: 4.16.1
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:4.16.1"
|
||||
"@typescript-eslint/visitor-keys@npm:4.18.0":
|
||||
version: 4.18.0
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:4.18.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 4.16.1
|
||||
"@typescript-eslint/types": 4.18.0
|
||||
eslint-visitor-keys: ^2.0.0
|
||||
checksum: 7b3f87165fc3533e80c8e5848306dca7ffbe7a6c04c40895cb5cdbfdf55bca606933efae20c16d91576e0ab926f8f539257b1fb13231aac3b0c8ad9d741042c9
|
||||
checksum: 654576d330531386773facffc715e213602721de8ca2f6268d71186a732975031954119fba414a4d502b4827b3941fae068ebb4368b4b7f94e937597b3f57d82
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3710,13 +3706,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"colors@npm:^1.4.0":
|
||||
version: 1.4.0
|
||||
resolution: "colors@npm:1.4.0"
|
||||
checksum: a0f266ac041a9774d92cc9624a984707678d2eeec125d54e8d8231075ce36c24c5352fb5d0f90c6ee420d0f63e354417cec716386ad341309334aad18e32b933
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"combined-stream@npm:^1.0.6, combined-stream@npm:^1.0.8, combined-stream@npm:~1.0.6":
|
||||
version: 1.0.8
|
||||
resolution: "combined-stream@npm:1.0.8"
|
||||
@@ -4274,6 +4263,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"detective-typescript@npm:^7.0.0":
|
||||
version: 7.0.0
|
||||
resolution: "detective-typescript@npm:7.0.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/typescript-estree": ^4.8.2
|
||||
ast-module-types: ^2.7.1
|
||||
node-source-walk: ^4.2.0
|
||||
typescript: ^3.9.7
|
||||
checksum: c44a28bfd762811cbe3af56ec2c014a82a16040698659a25a33cbb32c12993cc3b64514e820242a8a0b482747ab4b3062509315904803353fdfc3033b1593ebf
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"diff-sequences@npm:^26.6.2":
|
||||
version: 26.6.2
|
||||
resolution: "diff-sequences@npm:26.6.2"
|
||||
@@ -4770,9 +4771,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint@npm:^7.21.0":
|
||||
version: 7.21.0
|
||||
resolution: "eslint@npm:7.21.0"
|
||||
"eslint@npm:^7.22.0":
|
||||
version: 7.22.0
|
||||
resolution: "eslint@npm:7.22.0"
|
||||
dependencies:
|
||||
"@babel/code-frame": 7.12.11
|
||||
"@eslint/eslintrc": ^0.4.0
|
||||
@@ -4791,7 +4792,7 @@ __metadata:
|
||||
file-entry-cache: ^6.0.1
|
||||
functional-red-black-tree: ^1.0.1
|
||||
glob-parent: ^5.0.0
|
||||
globals: ^12.1.0
|
||||
globals: ^13.6.0
|
||||
ignore: ^4.0.6
|
||||
import-fresh: ^3.0.0
|
||||
imurmurhash: ^0.1.4
|
||||
@@ -4799,7 +4800,7 @@ __metadata:
|
||||
js-yaml: ^3.13.1
|
||||
json-stable-stringify-without-jsonify: ^1.0.1
|
||||
levn: ^0.4.1
|
||||
lodash: ^4.17.20
|
||||
lodash: ^4.17.21
|
||||
minimatch: ^3.0.4
|
||||
natural-compare: ^1.4.0
|
||||
optionator: ^0.9.1
|
||||
@@ -4813,7 +4814,7 @@ __metadata:
|
||||
v8-compile-cache: ^2.0.3
|
||||
bin:
|
||||
eslint: bin/eslint.js
|
||||
checksum: aa8fd50cddc4ab259e2d0ff8f43f0601060543c12e335d76ee074bf25ad02a885bea9d48a367de736d3bdb871de7eb62e6d67930c0173cc46280ddd0f236e740
|
||||
checksum: 9be0a215b6b1e2941318b3e0c11ada8ba9a4adacf5960ab916d07f1d619828af40cba00e8ed7d151b8c715ba8ea81f4c2a56e46a2558d9795788b4f410a95ec4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -5651,6 +5652,15 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"globals@npm:^13.6.0":
|
||||
version: 13.6.0
|
||||
resolution: "globals@npm:13.6.0"
|
||||
dependencies:
|
||||
type-fest: ^0.20.2
|
||||
checksum: 0322d9c1b210be233060aa79592bc65c45572237be8dbedabf830dbd70120ac21f8721309a396782463e60c4cc0b92a6476a348b4b13e481f35e361195328b8e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"globby@npm:^11.0.1":
|
||||
version: 11.0.1
|
||||
resolution: "globby@npm:11.0.1"
|
||||
@@ -5731,7 +5741,7 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"handlebars@npm:^4.7.6, handlebars@npm:^4.7.7":
|
||||
"handlebars@npm:^4.7.7":
|
||||
version: 4.7.7
|
||||
resolution: "handlebars@npm:4.7.7"
|
||||
dependencies:
|
||||
@@ -7509,15 +7519,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lru-cache@npm:^5.1.1":
|
||||
version: 5.1.1
|
||||
resolution: "lru-cache@npm:5.1.1"
|
||||
dependencies:
|
||||
yallist: ^3.0.2
|
||||
checksum: ffd9a280fa3400e731265db502270c2a65432f3fbfac23d480c72f675ec16dbbeddd57d4baf7aca70ab7af49949fad1bcaaf5a5e6e1cfed7316de71bb5dddf1c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lru-cache@npm:^6.0.0":
|
||||
version: 6.0.0
|
||||
resolution: "lru-cache@npm:6.0.0"
|
||||
@@ -7527,16 +7528,9 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lunr@npm:^2.3.9":
|
||||
version: 2.3.9
|
||||
resolution: "lunr@npm:2.3.9"
|
||||
checksum: a2b66320c2f6632322b91c43621eed9e623c0f1b81e7c2d74c238884a02229698baa4478bd238e9b32d7abf0db5ae9233b311c28e1edbcc481774e1ce83bec6f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"madge@npm:^4.0.0":
|
||||
version: 4.0.0
|
||||
resolution: "madge@npm:4.0.0"
|
||||
"madge@npm:^4.0.2":
|
||||
version: 4.0.2
|
||||
resolution: "madge@npm:4.0.2"
|
||||
dependencies:
|
||||
chalk: ^4.1.0
|
||||
commander: ^6.2.1
|
||||
@@ -7551,7 +7545,7 @@ fsevents@~2.1.2:
|
||||
detective-sass: ^3.0.1
|
||||
detective-scss: ^2.0.1
|
||||
detective-stylus: ^1.0.0
|
||||
detective-typescript: ^6.0.0
|
||||
detective-typescript: ^7.0.0
|
||||
graphviz: 0.0.9
|
||||
ora: ^5.1.0
|
||||
pluralize: ^8.0.0
|
||||
@@ -7561,8 +7555,8 @@ fsevents@~2.1.2:
|
||||
typescript: ^3.9.5
|
||||
walkdir: ^0.4.1
|
||||
bin:
|
||||
madge: ./bin/cli.js
|
||||
checksum: 9a2355365802610870f0b30e4c6b81dee4ede0fe4985c97f340f0935ea5c452c9f197f1ad619f6ae254b0acf3ac5b98e39d35522ff6a00d70835817053295504
|
||||
madge: bin/cli.js
|
||||
checksum: b149cd70021a59e6c0d179812bd0113413a9aaf5ebb040d204cf65fdec35f3ae0502e3a7f1152de85256ed63ab4eca6089cca5f95caf4716177261d74b159708
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7610,15 +7604,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"marked@npm:^2.0.0":
|
||||
version: 2.0.0
|
||||
resolution: "marked@npm:2.0.0"
|
||||
bin:
|
||||
marked: bin/marked
|
||||
checksum: 5b3b13b9b68beb126284d04fedeacee37c847618c091cf575eaa32746cf0af2d65b1ed25b2cc9269b0cdffa2e8dc5aa2daacff81ead68c59a7a6a1656f1d28ed
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"md5.js@npm:^1.3.4":
|
||||
version: 1.3.5
|
||||
resolution: "md5.js@npm:1.3.5"
|
||||
@@ -7744,7 +7729,7 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"minimatch@npm:^3.0.0, minimatch@npm:^3.0.3, minimatch@npm:^3.0.4":
|
||||
"minimatch@npm:^3.0.3, minimatch@npm:^3.0.4":
|
||||
version: 3.0.4
|
||||
resolution: "minimatch@npm:3.0.4"
|
||||
dependencies:
|
||||
@@ -7918,15 +7903,15 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"nock@npm:^13.0.10":
|
||||
version: 13.0.10
|
||||
resolution: "nock@npm:13.0.10"
|
||||
"nock@npm:^13.0.11":
|
||||
version: 13.0.11
|
||||
resolution: "nock@npm:13.0.11"
|
||||
dependencies:
|
||||
debug: ^4.1.0
|
||||
json-stringify-safe: ^5.0.1
|
||||
lodash.set: ^4.3.2
|
||||
propagate: ^2.0.0
|
||||
checksum: 9dffa2c45de0caba5842dce1fa145d0581e8c1217bf531eee29f04d7e9823c3a53c298de18143e11363db5fcc0afb39650ae71aecfd966682a5bfc4bc3d31ae6
|
||||
checksum: 75aca1f14036e9ba6aaa03813b83d1685cd3f2268b154b30ab9f5f00719958140a9d0b1e5f4f420da4e1e6d9fa14f193fc4df68b007d49d7a749dc6fd1646071
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -8247,15 +8232,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"onigasm@npm:^2.2.5":
|
||||
version: 2.2.5
|
||||
resolution: "onigasm@npm:2.2.5"
|
||||
dependencies:
|
||||
lru-cache: ^5.1.1
|
||||
checksum: 9db74810f55bc0b9718991d36ea445e2095f09743f22d5e76bc37a31e34b9b5204b1224ea2fb30253e810fe57222bf86274d5b38073b1c14534fee4c6da300b4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"optionator@npm:^0.8.1":
|
||||
version: 0.8.3
|
||||
resolution: "optionator@npm:0.8.3"
|
||||
@@ -8786,7 +8762,7 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"progress@npm:^2.0.0, progress@npm:^2.0.3":
|
||||
"progress@npm:^2.0.0":
|
||||
version: 2.0.3
|
||||
resolution: "progress@npm:2.0.3"
|
||||
checksum: c46ef5a1de4d527dfd32fe56a7df0c1c8b420a4c02617196813bf7f10ac7c2a929afc265d44fdd68f5c439a7e7cb3d70d569716c82d6b4148ec72089860a1312
|
||||
@@ -9403,13 +9379,13 @@ fsevents@~2.1.2:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@babel/core": ^7.13.8
|
||||
"@babel/core": ^7.13.10
|
||||
"@babel/register": ^7.13.8
|
||||
"@babel/runtime": ^7.13.9
|
||||
"@polkadot/dev": ^0.62.5
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/dev": ^0.62.6
|
||||
"@polkadot/ts": ^0.3.62
|
||||
"@polkadot/typegen": "workspace:packages/typegen"
|
||||
"@types/jest": ^26.0.20
|
||||
"@types/jest": ^26.0.21
|
||||
copyfiles: ^2.4.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -9650,16 +9626,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"shiki@npm:^0.9.2":
|
||||
version: 0.9.2
|
||||
resolution: "shiki@npm:0.9.2"
|
||||
dependencies:
|
||||
onigasm: ^2.2.5
|
||||
vscode-textmate: ^5.2.0
|
||||
checksum: 3177802720bec0605876c859f88200a0d109bb7db1656e190422d21563ac639cab36b01cd34cf82fe1673a3d63fac33be2f06cf9c1d6fe5a0552cbbfe1a82245
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"side-channel@npm:^1.0.2, side-channel@npm:^1.0.3":
|
||||
version: 1.0.4
|
||||
resolution: "side-channel@npm:1.0.4"
|
||||
@@ -10518,6 +10484,13 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"type-fest@npm:^0.20.2":
|
||||
version: 0.20.2
|
||||
resolution: "type-fest@npm:0.20.2"
|
||||
checksum: 1f887bc6150e632fb772fd28e33c22a4ab036c6f484fa9ac2e2115f6cae9d62bba7ca0368e3332b539d85bd2c8391c7bff22ad410abcbc9ab3774d61e250b210
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"type-fest@npm:^0.6.0":
|
||||
version: 0.6.0
|
||||
resolution: "type-fest@npm:0.6.0"
|
||||
@@ -10555,56 +10528,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typedoc-default-themes@npm:^0.12.7":
|
||||
version: 0.12.7
|
||||
resolution: "typedoc-default-themes@npm:0.12.7"
|
||||
checksum: abe8c897cbcfe417e475eda618705d280daeddac1d7af6a3fa0ed2a63c8cc3b6ad4f05991a247335e8980257fffc6f16b781b898fd860f7e649fda52da04d2e5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typedoc-plugin-markdown@npm:^3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "typedoc-plugin-markdown@npm:3.6.0"
|
||||
dependencies:
|
||||
handlebars: ^4.7.6
|
||||
peerDependencies:
|
||||
typedoc: ">=0.20.0"
|
||||
checksum: d13fa91c49a050534e349dd2f8d999c28f54dc4a4804075f1d8ed840dd64c18b7bbb49aa29782955a8b9d287d07c39e24f79d9c71dd2f667e977520a75f70f84
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typedoc-plugin-no-inherit@npm:^1.2.0":
|
||||
version: 1.2.0
|
||||
resolution: "typedoc-plugin-no-inherit@npm:1.2.0"
|
||||
peerDependencies:
|
||||
typedoc: ">=0.16.0"
|
||||
checksum: 2587168cabf864bf6ba867db6d62e718e9101f76f0f6a24a4583e7a9731ede885d079e36c7c0b4dbf8a0391c7f735ee61a6c33888e4061bdf4e67384bfb16c91
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typedoc@npm:^0.20.28":
|
||||
version: 0.20.28
|
||||
resolution: "typedoc@npm:0.20.28"
|
||||
dependencies:
|
||||
colors: ^1.4.0
|
||||
fs-extra: ^9.1.0
|
||||
handlebars: ^4.7.7
|
||||
lodash: ^4.17.21
|
||||
lunr: ^2.3.9
|
||||
marked: ^2.0.0
|
||||
minimatch: ^3.0.0
|
||||
progress: ^2.0.3
|
||||
shelljs: ^0.8.4
|
||||
shiki: ^0.9.2
|
||||
typedoc-default-themes: ^0.12.7
|
||||
peerDependencies:
|
||||
typescript: 3.9.x || 4.0.x || 4.1.x
|
||||
bin:
|
||||
typedoc: bin/typedoc
|
||||
checksum: c1415c3bf7595382d8f61660fd96924ee824b147d6a08cb3cfa7cf77e485c490f0c6e25928f2737cec0db73c227d4a5d52ba20474cfb72289c7be7fc9feb67ca
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:^4.2.3":
|
||||
version: 4.2.3
|
||||
resolution: "typescript@npm:4.2.3"
|
||||
@@ -10883,13 +10806,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vscode-textmate@npm:^5.2.0":
|
||||
version: 5.2.0
|
||||
resolution: "vscode-textmate@npm:5.2.0"
|
||||
checksum: 67ec1fed58690b6d21fb75462694ebfeefe93d9a4091dfbea9db4e1b718d172ac2e60e3944a0dd88c53ff50e7604dfcccde19d8a4d25616c0b2df330052df2b9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vue-template-es2015-compiler@npm:^1.9.0":
|
||||
version: 1.9.1
|
||||
resolution: "vue-template-es2015-compiler@npm:1.9.1"
|
||||
@@ -11191,13 +11107,6 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yallist@npm:^3.0.2":
|
||||
version: 3.1.1
|
||||
resolution: "yallist@npm:3.1.1"
|
||||
checksum: f352c93b92f601bb0399210bca37272e669c961e9bd886bac545380598765cbfdfb4f166e7b6c57ca4ec8a5af4ab3fa0fd78a47f9a7d655a3d580ff0fc9e7d79
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yallist@npm:^4.0.0":
|
||||
version: 4.0.0
|
||||
resolution: "yallist@npm:4.0.0"
|
||||
|
||||
Reference in New Issue
Block a user