Bump dev (w/ ts-eslint updates) (#5691)

This commit is contained in:
Jaco
2023-08-16 11:00:52 +03:00
committed by GitHub
parent 319535a1e9
commit d8136a8e61
73 changed files with 358 additions and 268 deletions
+2 -2
View File
@@ -40,9 +40,9 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.75.26",
"@polkadot/dev": "^0.76.1",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.4.0"
"@types/node": "^20.4.2"
},
"resolutions": {
"typescript": "^5.0.4"
+1 -1
View File
@@ -65,7 +65,7 @@ export interface PaginationOptions<A = unknown> {
export type DecorateMethod<_ApiType extends ApiTypes, T = any> =
<M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
type AsCodec<R extends Codec | any> = R extends Codec
type AsCodec<R> = R extends Codec
? R
: Codec;
+4 -5
View File
@@ -7,8 +7,8 @@ import type { ApiTypes, EmptyBase, ReturnCodec } from './base.js';
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
ApiType extends 'rxjs'
? <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Observable<T>
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
? <T = ReturnCodec<F>> (...args: Parameters<F>) => Observable<T>
: <T = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
/** The metadata/description/definition for this method */
@@ -22,11 +22,10 @@ export interface AugmentedCalls<ApiType extends ApiTypes> extends EmptyBase<ApiT
// augmented
}
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface QueryableCalls<ApiType extends ApiTypes> extends AugmentedCalls<ApiType> {
// when non-augmented, we need to at least have Codec results
[key: string]: QueryableModuleCalls<ApiType>;
}
export interface QueryableModuleCalls<ApiType extends ApiTypes> {
[key: string]: DecoratedCallBase<ApiType>;
}
export type QueryableModuleCalls<ApiType extends ApiTypes> = Record<string, DecoratedCallBase<ApiType>>;
+2 -3
View File
@@ -16,11 +16,10 @@ export interface AugmentedConsts<ApiType extends ApiTypes> extends EmptyBase<Api
// augmented
}
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
// when non-augmented, we need to at least have Codec results
[key: string]: QueryableModuleConsts;
}
export interface QueryableModuleConsts {
[key: string]: Codec;
}
export type QueryableModuleConsts = Record<string, Codec>;
+2 -3
View File
@@ -13,11 +13,10 @@ export interface AugmentedErrors<ApiType extends ApiTypes> extends EmptyBase<Api
// augmented
}
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {
// when non-augmented, we need to at least have Codec results
[key: string]: ModuleErrors<ApiType>;
}
export interface ModuleErrors<ApiType extends ApiTypes> {
[key: string]: AugmentedError<ApiType>;
}
export type ModuleErrors<ApiType extends ApiTypes> = Record<string, AugmentedError<ApiType>>;
+2 -3
View File
@@ -14,11 +14,10 @@ export interface AugmentedEvents<ApiType extends ApiTypes> extends EmptyBase<Api
// augmented
}
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
// when non-augmented, we need to at least have Codec results
[key: string]: ModuleEvents<ApiType>;
}
export interface ModuleEvents<ApiType extends ApiTypes> {
[key: string]: AugmentedEvent<ApiType>;
}
export type ModuleEvents<ApiType extends ApiTypes> = Record<string, AugmentedEvent<ApiType>>;
+12 -18
View File
@@ -8,13 +8,11 @@ import type { StorageEntry } from '@polkadot/types/primitive/types';
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
import type { ApiTypes, DropLast, EmptyBase, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
interface StorageEntryObservableMulti<R extends Codec = Codec> {
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
}
type StorageEntryObservableMulti<R extends Codec = Codec> = <T extends Codec = R>(args: unknown[]) => Observable<T[]>;
interface StorageEntryPromiseMulti<R extends Codec = Codec> {
<T extends Codec = R>(args: (unknown[] | unknown)[]): Promise<T[]>;
<T extends Codec = R>(args: (unknown[] | unknown)[], callback: Callback<T[]>): UnsubscribePromise;
<T extends Codec = R>(args: unknown[]): Promise<T[]>;
<T extends Codec = R>(args: unknown[], callback: Callback<T[]>): UnsubscribePromise;
}
export interface StorageEntryPromiseOverloads {
@@ -48,12 +46,12 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
/**
* @deprecated Use api.at(<blockHash>)
*/
at: <T extends Codec | any = ReturnCodec<F>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
at: <T = ReturnCodec<F>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
creator: StorageEntry;
/**
* @deprecated Use api.at(<blockHash>)
*/
entriesAt: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
entriesAt: <T = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
/**
* @deprecated Use api.at(<blockHash>)
*/
@@ -68,8 +66,8 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
}
export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> {
entries: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
entriesPaged: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
entries: <T = ReturnCodec<F>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
entriesPaged: <T = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
key: (...args: Parameters<F>) => string;
@@ -79,21 +77,15 @@ export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunct
size: (...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
}
export interface QueryableModuleStorage<ApiType extends ApiTypes> {
[key: string]: QueryableStorageEntry<ApiType, AnyTuple>;
}
export type QueryableModuleStorage<ApiType extends ApiTypes> = Record<string, QueryableStorageEntry<ApiType, AnyTuple>>;
export interface QueryableModuleStorageAt<ApiType extends ApiTypes> {
[key: string]: QueryableStorageEntryAt<ApiType, AnyTuple>;
}
export type QueryableModuleStorageAt<ApiType extends ApiTypes> = Record<string, QueryableStorageEntryAt<ApiType, AnyTuple>>;
export type QueryableStorageMultiArg<ApiType extends ApiTypes> =
QueryableStorageEntry<ApiType> |
[QueryableStorageEntry<ApiType>, ...unknown[]];
export interface QueryableStorageMultiBase<ApiType extends ApiTypes> {
<T extends Codec[]>(calls: QueryableStorageMultiArg<ApiType>[]): Observable<T>;
}
export type QueryableStorageMultiBase<ApiType extends ApiTypes> = <T extends Codec[]>(calls: QueryableStorageMultiArg<ApiType>[]) => Observable<T>;
export interface QueryableStorageMultiPromise<ApiType extends ApiTypes> {
<T extends Codec[]>(calls: QueryableStorageMultiArg<ApiType>[], callback: Callback<T>): UnsubscribePromise;
@@ -119,11 +111,13 @@ export interface AugmentedQueries<ApiType extends ApiTypes> extends EmptyBase<Ap
// augmented
}
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface QueryableStorage<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
// when non-augmented, we need to at least have Codec results
[key: string]: QueryableModuleStorage<ApiType>;
}
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
export interface QueryableStorageAt<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
[key: string]: QueryableModuleStorageAt<ApiType>;
}
+1 -4
View File
@@ -92,7 +92,4 @@ export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends Augment
[key: string]: SubmittableModuleExtrinsics<ApiType>;
}
export interface SubmittableModuleExtrinsics<ApiType extends ApiTypes> {
// only with is<Type> augmentation
[key: string]: SubmittableExtrinsicFunction<ApiType>;
}
export type SubmittableModuleExtrinsics<ApiType extends ApiTypes> = Record<string, SubmittableExtrinsicFunction<ApiType>>;
+1 -1
View File
@@ -104,7 +104,7 @@ export class Abi {
readonly messages: AbiMessage[];
readonly metadata: ContractMetadataLatest;
readonly registry: Registry;
readonly environment: Map<string, TypeDef | Codec> = new Map();
readonly environment = new Map<string, TypeDef | Codec>();
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
[this.json, this.registry, this.metadata, this.info] = parseJson(
+1 -3
View File
@@ -18,9 +18,7 @@ import { Base } from './Base.js';
import { Contract } from './Contract.js';
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
export interface BlueprintConstructor<ApiType extends ApiTypes> {
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array): Blueprint<ApiType>;
}
export type BlueprintConstructor<ApiType extends ApiTypes> = new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array) => Blueprint<ApiType>;
export class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
readonly contract?: Contract<ApiType> | undefined;
+1 -3
View File
@@ -20,9 +20,7 @@ import { Blueprint } from './Blueprint.js';
import { Contract } from './Contract.js';
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
export interface CodeConstructor<ApiType extends ApiTypes> {
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined): Code<ApiType>;
}
export type CodeConstructor<ApiType extends ApiTypes> = new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined) => Code<ApiType>;
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
readonly blueprint?: Blueprint<ApiType> | undefined;
+1 -3
View File
@@ -20,9 +20,7 @@ import { applyOnEvent } from '../util.js';
import { Base } from './Base.js';
import { convertWeight, withMeta } from './util.js';
export interface ContractConstructor<ApiType extends ApiTypes> {
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
}
export type ContractConstructor<ApiType extends ApiTypes> = new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId) => Contract<ApiType>;
// As per Rust, 5 * GAS_PER_SEC
const MAX_CALL_GAS = new BN(5_000_000_000_000).isub(BN_ONE);
+4 -12
View File
@@ -23,9 +23,7 @@ export interface ContractTx<ApiType extends ApiTypes> extends MessageMeta {
(options: ContractOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
}
export interface ContractGeneric<O, T> {
(messageOrId: AbiMessage | string | number, options: O, ...params: unknown[]): T;
}
export type ContractGeneric<O, T> = (messageOrId: AbiMessage | string | number, options: O, ...params: unknown[]) => T;
export type ContractCallResult<ApiType extends ApiTypes, T> = ApiType extends 'rxjs'
? Observable<T>
@@ -35,14 +33,8 @@ export interface ContractCallSend<ApiType extends ApiTypes> {
send (account: string | AccountId | Uint8Array): ContractCallResult<ApiType, ContractCallOutcome>;
}
export interface MapConstructorExec<ApiType extends ApiTypes> {
[message: string]: BlueprintDeploy<ApiType>;
}
export type MapConstructorExec<ApiType extends ApiTypes> = Record<string, BlueprintDeploy<ApiType>>;
export interface MapMessageTx<ApiType extends ApiTypes> {
[message: string]: ContractTx<ApiType>;
}
export type MapMessageTx<ApiType extends ApiTypes> = Record<string, ContractTx<ApiType>>;
export interface MapMessageQuery<ApiType extends ApiTypes> {
[message: string]: ContractQuery<ApiType>;
}
export type MapMessageQuery<ApiType extends ApiTypes> = Record<string, ContractQuery<ApiType>>;
+1 -1
View File
@@ -35,7 +35,7 @@ export function createBluePrintWithId <T> (fn: (constructorOrId: AbiConstructor
export function encodeSalt (salt: Uint8Array | string | null = randomAsU8a()): Uint8Array {
return salt instanceof Bytes
? salt
: salt && salt.length
: salt?.length
? compactAddLength(u8aToU8a(salt))
: EMPTY_SALT;
}
+2 -4
View File
@@ -49,10 +49,8 @@ export interface AbiMessage {
export type AbiConstructor = AbiMessage;
export interface InterfaceContractCalls {
// eslint-disable-next-line @typescript-eslint/ban-types
[index: string]: Function;
}
// eslint-disable-next-line @typescript-eslint/ban-types
export type InterfaceContractCalls = Record<string, Function>;
export interface ContractCallOutcome {
debugMessage: Text;
+1 -1
View File
@@ -23,7 +23,7 @@ type FlagsIntermediate = [
];
function parseFlags (address: AccountId | Address | string | null | undefined, [electionsMembers, councilMembers, technicalCommitteeMembers, societyMembers, sudoKey]: FlagsIntermediate): DeriveAccountFlags {
const addrStr = address && address.toString();
const addrStr = address?.toString();
const isIncluded = (id: AccountId | Address | string) =>
id.toString() === addrStr;
@@ -27,7 +27,7 @@ export function idToIndex (instanceId: string, api: DeriveApi): (accountId: Acco
return memo(instanceId, (accountId: AccountId | string): Observable<AccountIndex | undefined> =>
api.derive.accounts.indexes().pipe(
map((indexes: AccountIndexes): AccountIndex | undefined =>
(indexes || {})[accountId.toString()]
indexes[accountId.toString()]
)
));
}
+1 -1
View File
@@ -56,7 +56,7 @@ function extractIdentity (identityOfOpt?: Option<PalletIdentityRegistration>, su
judgements,
legal: dataAsString(info.legal),
other: extractOther(info.additional),
parent: superOf && superOf[0],
parent: superOf?.[0],
pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(),
riot: dataAsString(info.riot),
twitter: dataAsString(info.twitter),
+3 -5
View File
@@ -17,11 +17,9 @@ type BalanceResult = [Balance, Balance, Balance, Balance];
type Result = [Index, BalanceResult[]];
type DeriveCustomAccount = DeriveApi['derive'] & {
[custom: string]: {
customAccount?: DeriveApi['query']['balances']['account']
}
}
type DeriveCustomAccount = DeriveApi['derive'] & Record<string, {
customAccount?: DeriveApi['query']['balances']['account']
}>
function zeroBalance (api: DeriveApi) {
return api.registry.createType('Balance');
+3 -5
View File
@@ -23,11 +23,9 @@ interface AllLocked {
vestingLocked: Balance
}
type DeriveCustomLocks = DeriveApi['derive'] & {
[custom: string]: {
customLocks?: DeriveApi['query']['balances']['locks']
}
}
type DeriveCustomLocks = DeriveApi['derive'] & Record<string, {
customLocks?: DeriveApi['query']['balances']['locks']
}>
const VESTING_ID = '0x76657374696e6720';
@@ -11,7 +11,7 @@ import { memo } from '../util/index.js';
export function votingBalances (instanceId: string, api: DeriveApi): (addresses?: (AccountId | AccountIndex | Address | string)[]) => Observable<DeriveBalancesAccount[]> {
return memo(instanceId, (addresses?: (AccountId | AccountIndex | Address | string)[]): Observable<DeriveBalancesAccount[]> =>
!addresses || !addresses.length
!addresses?.length
? of([] as DeriveBalancesAccount[])
: combineLatest(
addresses.map((accountId): Observable<DeriveBalancesAccount> =>
@@ -157,6 +157,6 @@ describe('bounties derive', () => {
expect(result).toHaveLength(2);
expect(result[0].proposals).toHaveLength(0);
expect(result[1].proposals).toHaveLength(1);
expect(result[1].proposals[0].proposal && result[1].proposals[0].proposal.method).toEqual('approveBounty');
expect(result[1].proposals[0].proposal?.method).toEqual('approveBounty');
});
});
@@ -13,7 +13,7 @@ import { memo } from '../util/index.js';
export function getInstance (api: DeriveApi, section: string): DeriveApi['query']['council'] {
const instances = api.registry.getModuleInstances(api.runtimeVersion.specName, section);
const name = instances && instances.length
const name = instances?.length
? instances[0]
: section;
+6 -4
View File
@@ -39,8 +39,10 @@ export function setEraMultiCache <T extends { era: EraIndex }> (CACHE_KEY: strin
}
export function filterCachedEras <T extends { era: EraIndex }> (eras: EraIndex[], cached: T[], query: T[]): T[] {
return eras.map((e) =>
cached.find(({ era }) => e.eq(era)) ||
query.find(({ era }) => e.eq(era)) as T
);
return eras
.map((e) =>
cached.find(({ era }) => e.eq(era)) ||
query.find(({ era }) => e.eq(era))
)
.filter((e): e is T => !!e);
}
+1 -1
View File
@@ -14,7 +14,7 @@ import { firstMemo, memo } from '../util/index.js';
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestination: PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: PalletStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
return {
accountId: stashId,
controllerId: controllerIdOpt && controllerIdOpt.unwrapOr(null),
controllerId: controllerIdOpt?.unwrapOr(null) || null,
exposure,
nominators: nominatorsOpt.isSome
? nominatorsOpt.unwrap().targets
@@ -167,10 +167,12 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
queries.map(({ stakingLedger }, index): DeriveStakerReward[] =>
filterRewards(
eras,
stashValidators[index].map((validatorId): [string, DeriveStakingQuery] => [
validatorId,
queriedVals.find((q) => q.accountId.eq(validatorId)) as DeriveStakingQuery
]),
stashValidators[index]
.map((validatorId): [string, DeriveStakingQuery | undefined] => [
validatorId,
queriedVals.find((q) => q.accountId.eq(validatorId))
])
.filter((v): v is [string, DeriveStakingQuery] => !!v[1]),
{
rewards: allRewards[index],
stakingLedger
+1 -1
View File
@@ -6,7 +6,7 @@ import type { BlockNumber } from '@polkadot/types/interfaces';
import { isCompact } from '@polkadot/util';
type CompatHeader = { number: Compact<BlockNumber> | BlockNumber };
interface CompatHeader { number: Compact<BlockNumber> | BlockNumber }
export function unwrapBlockNumber (hdr: CompatHeader): BlockNumber {
return isCompact<BlockNumber>(hdr.number)
+20 -4
View File
@@ -128,8 +128,13 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
const metadata = new Metadata(registry,
await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(header.parentHash))
);
const runtimeChain = this._runtimeChain;
this._initRegistry(registry, this._runtimeChain as Text, version, metadata);
if (!runtimeChain) {
throw new Error('Invalid initializion order, runtimeChain is not available');
}
this._initRegistry(registry, runtimeChain, version, metadata);
// add our new registry
const result = { counter: 0, lastBlockHash: blockHash, metadata, registry, runtimeVersion: version };
@@ -299,12 +304,17 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
// update the default registry version
const thisRegistry = this._getDefaultRegistry();
const runtimeChain = this._runtimeChain;
if (!runtimeChain) {
throw new Error('Invalid initializion order, runtimeChain is not available');
}
// setup the data as per the current versions
thisRegistry.metadata = metadata;
thisRegistry.runtimeVersion = version;
this._initRegistry(this.registry, this._runtimeChain as Text, version, metadata);
this._initRegistry(this.registry, runtimeChain, version, metadata);
this._injectMetadata(thisRegistry, true);
return true;
@@ -334,7 +344,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
// retrieve metadata, either from chain or as pass-in via options
const metadataKey = `${genesisHash.toHex() || '0x'}-${runtimeVersion.specVersion.toString()}`;
const metadata = chainMetadata || (
optMetadata && optMetadata[metadataKey]
optMetadata?.[metadataKey]
? new Metadata(this.registry, optMetadata[metadataKey])
: await firstValueFrom(this._rpcCore.state.getMetadata())
);
@@ -356,10 +366,16 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
}
private _initFromMeta (metadata: Metadata): boolean {
const runtimeVersion = this._runtimeVersion;
if (!runtimeVersion) {
throw new Error('Invalid initializion order, runtimeVersion is not available');
}
this._extrinsicType = metadata.asLatest.extrinsic.version.toNumber();
this._rx.extrinsicType = this._extrinsicType;
this._rx.genesisHash = this._genesisHash;
this._rx.runtimeVersion = this._runtimeVersion as RuntimeVersion; // must be set here
this._rx.runtimeVersion = runtimeVersion;
// inject metadata and adjust the types as detected
this._injectMetadata(this._getDefaultRegistry(), true);
+1 -1
View File
@@ -69,7 +69,7 @@ export abstract class ApiBase<ApiType extends ApiTypes> extends Getters<ApiType>
if (isString(address)) {
const _signer = signer || this._rx.signer;
if (!_signer || !_signer.signRaw) {
if (!_signer?.signRaw) {
throw new Error('No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.');
}
+1 -3
View File
@@ -8,9 +8,7 @@ import { isFunction, noop } from '@polkadot/util';
export type CombinatorCallback <T extends unknown[]> = Callback<T>;
export interface CombinatorFunction {
(cb: Callback<any>): UnsubscribePromise;
}
export type CombinatorFunction = (cb: Callback<any>) => UnsubscribePromise;
export class Combinator<T extends unknown[] = unknown[]> {
#allHasFired = false;
+1 -1
View File
@@ -106,7 +106,7 @@ function decorateSubscribe<M extends DecorateFn<CodecReturnType<M>>> (method: M,
* @description Decorate method for ApiPromise, where the results are converted to the Promise equivalent
*/
export function toPromiseMethod<M extends DecorateFn<CodecReturnType<M>>> (method: M, options?: DecorateMethodOptions): StorageEntryPromiseOverloads {
const needsCallback = !!(options && options.methodName && options.methodName.includes('subscribe'));
const needsCallback = !!(options?.methodName && options.methodName.includes('subscribe'));
return function (...args: unknown[]): Promise<CodecReturnType<M>> | UnsubscribePromise {
const [actualArgs, resultCb] = extractArgs(args, needsCallback);
+1 -1
View File
@@ -38,7 +38,7 @@ describe('replay', (): void => {
it('replay(1) works as expected', async (): Promise<void> => {
const observable = rpc.system.chain();
let a: any | undefined;
let a: any;
observable.subscribe((value?: unknown): void => {
a = value;
+3 -3
View File
@@ -31,13 +31,13 @@
"@polkadot/x-ws": "^12.3.2",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.2.1",
"nock": "^13.3.1",
"nock": "^13.3.2",
"tslib": "^2.6.0"
},
"devDependencies": {
"@substrate/connect": "0.7.29"
"@substrate/connect": "0.7.30"
},
"optionalDependencies": {
"@substrate/connect": "0.7.29"
"@substrate/connect": "0.7.30"
}
}
+4 -4
View File
@@ -62,7 +62,7 @@ export class HttpProvider implements ProviderInterface {
* @summary `true` when this provider supports subscriptions
*/
public get hasSubscriptions (): boolean {
return false;
return !!false;
}
/**
@@ -97,7 +97,7 @@ export class HttpProvider implements ProviderInterface {
* @summary `true` when this provider supports clone()
*/
public get isClonable (): boolean {
return true;
return !!true;
}
/**
@@ -105,7 +105,7 @@ export class HttpProvider implements ProviderInterface {
* @return {boolean} true if connected
*/
public get isConnected (): boolean {
return true;
return !!true;
}
/**
@@ -126,7 +126,7 @@ export class HttpProvider implements ProviderInterface {
const [, body] = this.#coder.encodeJson(method, params);
let resultPromise: Promise<T> | null = isCacheable
? this.#callCache.get(body) as Promise<T>
? this.#callCache.get(body)
: null;
if (!resultPromise) {
+2 -2
View File
@@ -22,8 +22,8 @@ class LRUNode {
export class LRUCache {
readonly capacity: number;
readonly #data: Map<string, unknown> = new Map();
readonly #refs: Map<string, LRUNode> = new Map();
readonly #data = new Map<string, unknown>();
readonly #refs = new Map<string, LRUNode>();
#length = 0;
#head: LRUNode;
+3 -3
View File
@@ -96,7 +96,7 @@ export class MockProvider implements ProviderInterface {
}
public get hasSubscriptions (): boolean {
return true;
return !!true;
}
public clone (): MockProvider {
@@ -116,11 +116,11 @@ export class MockProvider implements ProviderInterface {
}
public get isClonable (): boolean {
return false;
return !!false;
}
public get isConnected (): boolean {
return true;
return !!true;
}
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
+1 -1
View File
@@ -6,7 +6,7 @@ import { Server, WebSocket } from 'mock-socket';
import { stringify } from '@polkadot/util';
interface Scope {
body: { [index: string]: Record<string, unknown> };
body: Record<string, Record<string, unknown>>;
requests: number;
server: Server;
done: any;
@@ -55,9 +55,9 @@ export class ScProvider implements ProviderInterface {
readonly #coder: RpcCoder = new RpcCoder();
readonly #spec: string | ScType.WellKnownChain;
readonly #sharedSandbox?: ScProvider | undefined;
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
readonly #resubscribeMethods: Map<string, ActiveSubs> = new Map();
readonly #requests: Map<number, ResponseCallback> = new Map();
readonly #subscriptions = new Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]>();
readonly #resubscribeMethods = new Map<string, ActiveSubs>();
readonly #requests = new Map<number, ResponseCallback>();
readonly #wellKnownChains: Set<ScType.WellKnownChain>;
readonly #eventemitter: EventEmitter = new EventEmitter();
@@ -77,11 +77,11 @@ export class ScProvider implements ProviderInterface {
public get hasSubscriptions (): boolean {
// Indicates that subscriptions are supported
return true;
return !!true;
}
public get isClonable (): boolean {
return false;
return !!false;
}
public get isConnected (): boolean {
@@ -276,7 +276,7 @@ export class ScProvider implements ProviderInterface {
}
try {
const promise: Promise<void> = new Promise((resolve) => {
const promise = new Promise<void>((resolve) => {
this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error));
resolve();
});
+8 -4
View File
@@ -33,7 +33,7 @@ interface WsStateSubscription extends SubscriptionHandler {
params: unknown[];
}
const ALIASES: { [index: string]: string } = {
const ALIASES: Record<string, string> = {
chain_finalisedHead: 'chain_finalizedHead',
chain_subscribeFinalisedHeads: 'chain_subscribeFinalizedHeads',
chain_unsubscribeFinalisedHeads: 'chain_unsubscribeFinalizedHeads'
@@ -152,14 +152,14 @@ export class WsProvider implements ProviderInterface {
* @summary `true` when this provider supports subscriptions
*/
public get hasSubscriptions (): boolean {
return true;
return !!true;
}
/**
* @summary `true` when this provider supports clone()
*/
public get isClonable (): boolean {
return true;
return !!true;
}
/**
@@ -531,7 +531,11 @@ export class WsProvider implements ProviderInterface {
};
#onSocketMessageSubscribe = (response: JsonRpcResponse<unknown>): void => {
const method = ALIASES[response.method as string] || response.method || 'invalid';
if (!response.method) {
throw new Error('No method found in JSONRPC response');
}
const method = ALIASES[response.method] || response.method;
const subId = `${method}::${response.params.subscription}`;
const handler = this.#subscriptions[subId];
+1 -1
View File
@@ -26,7 +26,7 @@ async function run (ws: string): Promise<void> {
api.runtimeMetadata.getUniqTypes(false);
}
type ArgV = { ws: string };
interface ArgV { ws: string }
export function main (): void {
// retrieve and parse arguments - we do this globally, since this is a single command
+1 -1
View File
@@ -70,7 +70,7 @@ async function generate (metaHex: HexString, pkg: string | undefined, output: st
process.exit(0);
}
type ArgV = { endpoint: string; output: string; package?: string; strict?: boolean };
interface ArgV { endpoint: string; output: string; package?: string; strict?: boolean }
async function mainPromise (): Promise<void> {
const { endpoint, output, package: pkg, strict: isStrict } = yargs(hideBin(process.argv)).strict().options({
+1 -1
View File
@@ -16,7 +16,7 @@ import { generateInterfaceTypes } from './generate/interfaceRegistry.js';
import { generateTsDef } from './generate/tsDef.js';
import { assertDir, assertFile, getMetadataViaWs } from './util/index.js';
type ArgV = { input: string; package: string; endpoint?: string; };
interface ArgV { input: string; package: string; endpoint?: string; }
async function mainPromise (): Promise<void> {
const { endpoint, input, package: pkg } = yargs(hideBin(process.argv)).strict().options({
@@ -21,7 +21,7 @@ const primitiveClasses = {
const generateInterfaceTypesTemplate = Handlebars.compile(readTemplate('interfaceRegistry'));
/** @internal */
export function generateInterfaceTypes (importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, dest: string): void {
export function generateInterfaceTypes (importDefinitions: Record<string, Record<string, ModuleTypes>>, dest: string): void {
const registry = new TypeRegistry();
writeFile(dest, (): string => {
+1 -1
View File
@@ -33,7 +33,7 @@ function getDefs (apis: Apis | null, defs: Record<string, Definitions>): Record<
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, sec] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const api = apis && apis.find(([h]) => h === sectionHash);
const api = apis?.find(([h]) => h === sectionHash);
if (api) {
const ver = sec.find(({ version }) => version === api[1]);
+2 -2
View File
@@ -253,7 +253,7 @@ function generateInterfaces (registry: Registry, definitions: Record<string, Mod
}
/** @internal */
export function generateTsDefFor (registry: Registry, importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, defName: string, { types }: { types: Record<string, any> }, outputDir: string): void {
export function generateTsDefFor (registry: Registry, importDefinitions: Record<string, Record<string, ModuleTypes>>, defName: string, { types }: { types: Record<string, any> }, outputDir: string): void {
const imports = { ...createImports(importDefinitions, { types }), interfaces: [] } as Imports;
const definitions = imports.definitions;
const interfaces = generateInterfaces(registry, definitions, { types }, imports);
@@ -275,7 +275,7 @@ export function generateTsDefFor (registry: Registry, importDefinitions: { [impo
}
/** @internal */
export function generateTsDef (importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, outputDir: string, generatingPackage: string): void {
export function generateTsDef (importDefinitions: Record<string, Record<string, ModuleTypes>>, outputDir: string, generatingPackage: string): void {
const registry = new TypeRegistry();
writeFile(path.join(outputDir, 'types.ts'), (): string => {
+8 -3
View File
@@ -92,7 +92,7 @@ function docsVecToMarkdown (docLines: Vec<Text>, indent = 0): string {
.replace(/#### Weight:/g, 'Weight:');
// prefix each line with indentation
return md && md.split('\n\n').map((line) => `${' '.repeat(indent)}${line}`).join('\n\n');
return md?.split('\n\n').map((line) => `${' '.repeat(indent)}${line}`).join('\n\n');
}
function renderPage (page: Page): string {
@@ -169,7 +169,12 @@ function addRpc (_runtimeDesc: string, rpcMethods?: string[]): string {
.keys(section.rpc || {})
.sort()
.forEach((methodName) => {
const method = (section.rpc || {})[methodName];
const method = section.rpc?.[methodName];
if (!method) {
throw new Error(`No ${methodName} RPC found in ${_sectionName}`);
}
const sectionName = method.aliasSection || _sectionName;
const jsonrpc = (method.endpoint || `${sectionName}_${methodName}`);
@@ -455,7 +460,7 @@ function writeFile (name: string, ...chunks: any[]): void {
writeStream.end();
}
type ArgV = { chain?: string; endpoint?: string; };
interface ArgV { chain?: string; endpoint?: string; }
async function mainPromise (): Promise<void> {
const { chain, endpoint } = yargs(hideBin(process.argv)).strict().options({
+1 -1
View File
@@ -11,7 +11,7 @@ export * from './initMeta.js';
export * from './register.js';
export * from './wsMeta.js';
type Cmp = { name: { toString(): string } };
interface Cmp { name: { toString(): string } }
export function compareName (a: Cmp, b: Cmp): number {
return a.name.toString().localeCompare(b.name.toString());
+2 -4
View File
@@ -10,9 +10,7 @@ import { mapToTypeMap, typesToMap } from '../utils/index.js';
import { Null } from './Null.js';
// export interface, this is used in Enum.with, so required as public by TS
export interface EnumCodecClass<T = Codec> {
new(registry: Registry, value?: any, index?: number): T;
}
export type EnumCodecClass<T = Codec> = new(registry: Registry, value?: any, index?: number) => T;
interface Definition {
def: TypesDef;
@@ -90,7 +88,7 @@ function extractDef (registry: Registry, _def: Record<string, string | CodecClas
function getEntryType (def: TypesDef, checkIdx: number): CodecClass {
const values = Object.values(def);
for (let i = 0; i < values.length; i++) {
for (let i = 0, count = values.length; i < count; i++) {
const { Type, index } = values[i];
if (index === checkIdx) {
+1 -3
View File
@@ -10,9 +10,7 @@ import { decodeU8a, mapToTypeMap, typesToConstructors, typeToConstructor } from
type TupleType = (CodecClass | string);
type TupleTypes = TupleType[] | {
[index: string]: CodecClass | string;
};
type TupleTypes = TupleType[] | Record<string, CodecClass | string>;
type Definition = [CodecClass[], string[]];
+1 -1
View File
@@ -118,7 +118,7 @@ describe('Vec', (): void => {
});
it('exposes a working forEach', (): void => {
const result: { [index: number]: string } = {};
const result: Record<number, string> = {};
vector.forEach((e, i): void => {
result[i] = e.toString();
+1 -1
View File
@@ -9,7 +9,7 @@ import { Raw } from '../native/Raw.js';
/** @internal */
function decodeBitVecU8a (value?: Uint8Array): [number, Uint8Array] {
if (!value || !value.length) {
if (!value?.length) {
return [0, new Uint8Array()];
}
@@ -40,7 +40,7 @@ export class OptionBool extends Option<Bool> {
* @description The length of the value when encoded as a Uint8Array
*/
public override get encodedLength (): number {
return 1;
return 1 | 0;
}
/**
+1 -1
View File
@@ -35,7 +35,7 @@ export class bool extends Boolean implements Codec {
* @description The length of the value when encoded as a Uint8Array
*/
public get encodedLength (): number {
return 1;
return 1 | 0;
}
/**
+1 -1
View File
@@ -42,7 +42,7 @@ export class Json extends Map<string, any> implements Codec {
* @description Always 0, never encodes as a Uint8Array
*/
public get encodedLength (): number {
return 0;
return 0 | 0;
}
/**
+1 -1
View File
@@ -225,7 +225,7 @@ export class Struct<
/**
* @description Returns the a types value by name
*/
public getT <T> (key: string): T {
public getT <T = Codec> (key: string): T {
return super.get(key) as unknown as T;
}
+18 -4
View File
@@ -40,7 +40,13 @@ function getTypeClassMap (value: TypeDef): Record<string, string> {
const map: Record<string, string> = {};
for (let i = 0, count = subs.length; i < count; i++) {
map[subs[i].name as string] = getTypeDefType(subs[i]);
const sub = subs[i];
if (!sub.name) {
throw new Error(`No name found in definition ${stringify(sub)}`);
}
map[sub.name] = getTypeDefType(sub);
}
return map;
@@ -88,7 +94,11 @@ const infoMapping: Record<TypeDefInfo, (registry: Registry, value: TypeDef) => C
return Enum.with(
subs.every(({ type }) => type === 'Null')
? subs.reduce<Record<string, number>>((out, { index, name }, count) => {
out[name as string] = index || count;
if (!name) {
throw new Error('No name found in sub definition');
}
out[name] = index || count;
return out;
}, {})
@@ -152,7 +162,11 @@ const infoMapping: Record<TypeDefInfo, (registry: Registry, value: TypeDef) => C
[TypeDefInfo.Set]: (_registry: Registry, value: TypeDef): CodecClass<Codec> =>
CodecSet.with(
getSubDefArray(value).reduce<Record<string, number>>((result, { index, name }) => {
result[name as string] = index as number;
if (!name || !isNumber(index)) {
throw new Error('No name found in sub definition');
}
result[name] = index;
return result;
}, {}),
@@ -225,7 +239,7 @@ export function constructTypeClass<T extends Codec = Codec> (registry: Registry,
// Returns the type Class for construction
export function getTypeClass<T extends Codec = Codec> (registry: Registry, typeDef: TypeDef): CodecClass<T> {
return registry.getUnsafe(typeDef.type, false, typeDef) as CodecClass<T>;
return registry.getUnsafe(typeDef.type, false, typeDef) as unknown as CodecClass<T>;
}
export function createClassUnsafe<T extends Codec = Codec, K extends string = string> (registry: Registry, type: K): CodecClass<T> {
+1 -1
View File
@@ -80,7 +80,7 @@ export function createTypeUnsafe<T extends Codec = Codec, K extends string = str
firstError = new Error(`createType(${type}):: ${(error as Error).message}`);
}
if (Clazz && Clazz.__fallbackType) {
if (Clazz?.__fallbackType) {
try {
Clazz = createClassUnsafe(registry, Clazz.__fallbackType as unknown as K);
@@ -8,7 +8,7 @@ import { isNumber, isUndefined, objectSpread, stringify } from '@polkadot/util';
import { TypeDefInfo } from '../types/index.js';
type ToString = { toString: () => string };
interface ToString { toString: () => string }
const stringIdentity = <T extends ToString> (value: T): string => value.toString();
@@ -56,7 +56,11 @@ function encodeSubTypes (registry: Registry, sub: TypeDef[], asEnum?: boolean, e
for (let i = 0, count = sub.length; i < count; i++) {
const def = sub[i];
inner[def.name as string] = encodeTypeDef(registry, def);
if (!def.name) {
throw new Error(`No name found in ${stringify(def)}`);
}
inner[def.name] = encodeTypeDef(registry, def);
}
return stringify(
+1 -1
View File
@@ -218,7 +218,7 @@ function _decodeDoNotConstruct (value: TypeDef, type: string, _: string): TypeDe
}
function hasWrapper (type: string, [start, end]: [string, string, TypeDefInfo, any?]): boolean {
return (type.substring(0, start.length) === start) && (type.slice(-1 * end.length) === end);
return (type.startsWith(start)) && (type.slice(-1 * end.length) === end);
}
const nestedExtraction: [string, string, TypeDefInfo, (value: TypeDef, type: string, subType: string, count: number) => TypeDef][] = [
+1 -1
View File
@@ -343,7 +343,7 @@ export class TypeRegistry implements Registry {
}
public get <T extends Codec = Codec, K extends string = string> (name: K, withUnknown?: boolean, knownTypeDef?: TypeDef): CodecClass<T> | undefined {
return this.getUnsafe(name, withUnknown, knownTypeDef) as CodecClass<T>;
return this.getUnsafe(name, withUnknown, knownTypeDef);
}
public getUnsafe <T extends Codec = Codec, K extends string = string> (name: K, withUnknown?: boolean, knownTypeDef?: TypeDef): CodecClass<T> | undefined {
+1 -1
View File
@@ -142,7 +142,7 @@ export class MortalEra extends Tuple {
* @description Encoded length for mortals occupy 2 bytes, different from the actual Tuple since it is encoded. This is a shortcut fro `toU8a().length`
*/
public override get encodedLength (): number {
return 2;
return 2 | 0;
}
/**
@@ -46,7 +46,7 @@ const knownTypes: Record<string, string> = {
export class GenericSignerPayload extends Struct implements ISignerPayload, SignerPayloadType {
readonly #extraTypes: Record<string, string>;
constructor (registry: Registry, value?: HexString | { [x: string]: unknown; } | Map<unknown, unknown> | unknown[]) {
constructor (registry: Registry, value?: HexString | Record<string, unknown> | Map<unknown, unknown> | unknown[]) {
const extensionTypes = objectSpread<Record<string, string>>({}, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra());
super(registry, objectSpread<Record<string, string>>({}, extensionTypes, knownTypes), value);
@@ -118,7 +118,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
// add any explicit overrides we may have
for (let i = 0, count = keys.length; i < count; i++) {
const key = keys[i];
const value = this.get(key) as Codec;
const value = this.getT(key);
const isOption = value instanceof Option;
// Don't include Option.isNone
@@ -3,7 +3,7 @@
export type ExtTypes = Record<string, string>;
export type ExtInfo = {
export interface ExtInfo {
extrinsic: ExtTypes;
payload: ExtTypes;
}
+1 -1
View File
@@ -48,7 +48,7 @@ export class GenericExtrinsicV4 extends Struct implements IExtrinsicImpl {
};
}
return (value as ExtrinsicValueV4) || {};
return value || {};
}
/**
@@ -165,7 +165,7 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
* @description Generate a payload and applies the signature from a keypair
*/
public sign (method: Call, account: IKeyringPair, options: SignatureOptions): IExtrinsicSignature {
if (!account || !account.addressRaw) {
if (!account?.addressRaw) {
throw new Error(`Expected a valid keypair for signing, found ${stringify(account)}`);
}
+1 -1
View File
@@ -85,7 +85,7 @@ function decodeCallViaU8a (registry: Registry, value: Uint8Array, _meta?: Functi
* necessary.
* @internal
*/
function decodeCall (registry: Registry, value: unknown | DecodedMethod | Uint8Array | string = new Uint8Array(), _meta?: FunctionMetadataLatest): DecodedMethod {
function decodeCall (registry: Registry, value: unknown = new Uint8Array(), _meta?: FunctionMetadataLatest): DecodedMethod {
if (isU8a(value) || isHex(value)) {
return decodeCallViaU8a(registry, u8aToU8a(value), _meta);
} else if (isObject<DecodedMethod>(value) && value.callIndex && value.args) {
+1 -1
View File
@@ -20,7 +20,7 @@ interface Decoded {
/** @internal */
function decodeEvent (registry: Registry, value?: Uint8Array): Decoded {
if (!value || !value.length) {
if (!value?.length) {
return { DataType: Null };
}
@@ -34,7 +34,7 @@ function inspectType (type: string): void {
// inspect the subs
if (Array.isArray(sub)) {
for (let i = 0; i < sub.length; i++) {
for (let i = 0, count = sub.length; i < count; i++) {
inspectType(sub[i].type);
}
} else if (sub) {
@@ -88,7 +88,7 @@ describe('createFunction', (): void => {
'1a7938fede32e1275281b3eee5708706d88444a6dc898a4dec463f1eb298463f' // AccountId
);
expect(
storageFn.iterKey && storageFn.iterKey.meta.type.asPlain.toNumber()
storageFn.iterKey?.meta.type.asPlain.toNumber()
).toEqual(0);
});
+1 -1
View File
@@ -6,7 +6,7 @@ import type { Codec } from '@polkadot/types-codec/types';
export type { AnyFunction, AnyJson, AnyNumber, AnyString, AnyTuple, AnyU8a, ArgsDef, BareOpts, Codec, CodecClass, CodecTo, Inspect } from '@polkadot/types-codec/types';
// helper to extract keys from an array
export type ArrayElementType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType>
export type ArrayElementType<T extends readonly unknown[]> = T extends readonly (infer ElementType)[]
? ElementType
: never;
+1 -1
View File
@@ -7,7 +7,7 @@ export type DefinitionTypeType = string;
export type DefinitionTypeEnum = { _fallback?: DefinitionTypeType } & ({ _enum: DefinitionTypeType[] } | { _enum: Record<string, DefinitionTypeType | null> });
export type DefinitionTypeSet = { _fallback?: DefinitionTypeType, _set: Record<string, number> };
export interface DefinitionTypeSet { _fallback?: DefinitionTypeType, _set: Record<string, number> }
type DefinitionTypeStructExtra = {
_alias?: Record<string, DefinitionTypeType>;
+4 -4
View File
@@ -33,7 +33,7 @@ export type __Sanitize<K extends string> =
export type __Value = string | Record<string, unknown> | __Value[];
export type __MapWrapOne<C extends Codec> = {
export interface __MapWrapOne<C extends Codec> {
'BTreeSet<': BTreeSet<C>;
'Compact<': C extends INumber ? Compact<C> : Codec;
'Linkage<': Linkage<C>;
@@ -42,15 +42,15 @@ export type __MapWrapOne<C extends Codec> = {
'RangeInclusive<': C extends INumber ? RangeInclusive<C> : Codec;
'Vec<': C extends u8 ? Bytes : Vec<C>;
'[': C extends u8 ? U8aFixed : VecFixed<C>;
};
}
// FIXME We don't cater for Int< & UInt< here. These could be problematic, since it has
// a variable number of inner arguments, better would be to just strip them inside the sanitize
export type __MapWrapTwo<K extends Codec, V extends Codec> = {
export interface __MapWrapTwo<K extends Codec, V extends Codec> {
'BTreeMap<': BTreeMap<K, V>;
'HashMap<': HashMap<K, V>;
'Result<': Result<K, V>;
};
}
export type __WrapOne = keyof __MapWrapOne<Codec>;
+176 -94
View File
@@ -73,7 +73,7 @@ __metadata:
languageName: node
linkType: hard
"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0":
"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.3.0, @eslint-community/eslint-utils@npm:^4.4.0":
version: 4.4.0
resolution: "@eslint-community/eslint-utils@npm:4.4.0"
dependencies:
@@ -475,43 +475,43 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev-test@npm:^0.75.26":
version: 0.75.26
resolution: "@polkadot/dev-test@npm:0.75.26"
"@polkadot/dev-test@npm:^0.76.1":
version: 0.76.1
resolution: "@polkadot/dev-test@npm:0.76.1"
dependencies:
jsdom: ^22.1.0
tslib: ^2.6.0
checksum: 060c2e074e07039d87c4274767e8ee0e0278fe77ee3e6649612371cd62babf141446be97b7b99a0762b9c59317f8e6c39e9f532486b46dfcd44e9910ea7cd49f
checksum: 212837e63a90267245ddcff34f812d677e1437a734a4f99ad07af50e5fbeb8b780aa87f1b396d28d6355fd4ab35725d02fc90a1c8f96f5873019e914dafbab97
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.75.26":
version: 0.75.26
resolution: "@polkadot/dev-ts@npm:0.75.26"
"@polkadot/dev-ts@npm:^0.76.1":
version: 0.76.1
resolution: "@polkadot/dev-ts@npm:0.76.1"
dependencies:
json5: ^2.2.3
tslib: ^2.6.0
typescript: ^5.1.6
checksum: b7743c43634acefc6044fc16c9af252b2cc8c5df3ed92ed64bd00b00907140ab50645dea86c9f60eca3a0182aae0ac1eae372d3f643046fab3cb28ccb0bff99d
checksum: 3f13c55540a29a398940bc11dd134d233cf9b634bd5a0eea889510fed05e2ae9626841192e8d468d4694a678a7aad89ff65f5a68082422d8afbab72a3e521b36
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.75.26":
version: 0.75.26
resolution: "@polkadot/dev@npm:0.75.26"
"@polkadot/dev@npm:^0.76.1":
version: 0.76.1
resolution: "@polkadot/dev@npm:0.76.1"
dependencies:
"@eslint/js": ^8.44.0
"@polkadot/dev-test": ^0.75.26
"@polkadot/dev-ts": ^0.75.26
"@polkadot/dev-test": ^0.76.1
"@polkadot/dev-ts": ^0.76.1
"@rollup/plugin-alias": ^5.0.0
"@rollup/plugin-commonjs": ^25.0.2
"@rollup/plugin-dynamic-import-vars": ^2.0.3
"@rollup/plugin-dynamic-import-vars": ^2.0.4
"@rollup/plugin-inject": ^5.0.3
"@rollup/plugin-json": ^6.0.0
"@rollup/plugin-node-resolve": ^15.1.0
"@tsconfig/strictest": ^2.0.1
"@typescript-eslint/eslint-plugin": ^5.61.0
"@typescript-eslint/parser": ^5.61.0
"@typescript-eslint/eslint-plugin": ^6.0.0
"@typescript-eslint/parser": ^6.0.0
eslint: ^8.44.0
eslint-config-standard: ^17.1.0
eslint-import-resolver-node: ^0.3.7
@@ -520,7 +520,7 @@ __metadata:
eslint-plugin-header: ^3.1.1
eslint-plugin-import: ^2.27.5
eslint-plugin-import-newlines: ^1.3.4
eslint-plugin-jest: ^27.2.2
eslint-plugin-jest: ^27.2.3
eslint-plugin-n: ^16.0.1
eslint-plugin-promise: ^6.1.1
eslint-plugin-react: ^7.32.2
@@ -533,7 +533,7 @@ __metadata:
globals: ^13.20.0
json5: ^2.2.3
madge: ^6.1.0
rollup: ^3.26.1
rollup: ^3.26.2
rollup-plugin-cleanup: ^3.2.1
tslib: ^2.6.0
typescript: ^5.1.6
@@ -567,7 +567,7 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 35b301f4e8db97770198ef2118ede790f798af2742227f3f79a90346fe912ad3eb0fc2db840877e67f56ee7aa162246c8c7f12c70e4a2e8ecf9a32a7da6945cd
checksum: c73176a1e187c19efa4432048bdee40b8a0ca0753e596e834a129dbdad4d3cf35067abd72f03907415fb875dd62a170f294a953665a5fee50473ff275c6cb889
languageName: node
linkType: hard
@@ -634,10 +634,10 @@ __metadata:
"@polkadot/x-fetch": ^12.3.2
"@polkadot/x-global": ^12.3.2
"@polkadot/x-ws": ^12.3.2
"@substrate/connect": 0.7.29
"@substrate/connect": 0.7.30
eventemitter3: ^5.0.1
mock-socket: ^9.2.1
nock: ^13.3.1
nock: ^13.3.2
tslib: ^2.6.0
dependenciesMeta:
"@substrate/connect":
@@ -972,9 +972,9 @@ __metadata:
languageName: node
linkType: hard
"@rollup/plugin-dynamic-import-vars@npm:^2.0.3":
version: 2.0.3
resolution: "@rollup/plugin-dynamic-import-vars@npm:2.0.3"
"@rollup/plugin-dynamic-import-vars@npm:^2.0.4":
version: 2.0.4
resolution: "@rollup/plugin-dynamic-import-vars@npm:2.0.4"
dependencies:
"@rollup/pluginutils": ^5.0.1
estree-walker: ^2.0.2
@@ -985,7 +985,7 @@ __metadata:
peerDependenciesMeta:
rollup:
optional: true
checksum: 53d4ed4c3c5cc78804eb38584d844983ea7f9af7e445a60814f865994f222d079f4ac5f73424ca5acb5f719340fd0a1c161a9cbd80c6d9ed9e778472972d839d
checksum: 8775ff85762c124e98e766533a02e7a3f7e6a729bf5c8c4f6746efe72cf7b1138b167aebf080783b687470edd5c36a635a27c2caa3ef1ef3f023bf980e3fe175
languageName: node
linkType: hard
@@ -1075,14 +1075,13 @@ __metadata:
languageName: node
linkType: hard
"@substrate/connect@npm:0.7.29":
version: 0.7.29
resolution: "@substrate/connect@npm:0.7.29"
"@substrate/connect@npm:0.7.30":
version: 0.7.30
resolution: "@substrate/connect@npm:0.7.30"
dependencies:
"@substrate/connect-extension-protocol": ^1.0.1
eventemitter3: ^4.0.7
smoldot: 1.0.9
checksum: 60511199ef96c84b193ad9d3e166c6689135bffbb384a376a75bcc7ba26f28e1b3b5e3ff06bbeb2a73a5e237d17aacb2f3d0bb2d19f8c2253c01ccaeac1d7aee
smoldot: 1.0.11
checksum: 5fdaf0cb6b4e4dcee53382c6796edf4ec5d14c9a183270ce67b1dfd50b2a5bbaae2ab843ee6c594b29c08b2ac117ff8d7f711ac36c159b37dbabdab9f8bf5526
languageName: node
linkType: hard
@@ -1222,10 +1221,10 @@ __metadata:
languageName: node
linkType: hard
"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9":
version: 7.0.11
resolution: "@types/json-schema@npm:7.0.11"
checksum: 527bddfe62db9012fccd7627794bd4c71beb77601861055d87e3ee464f2217c85fca7a4b56ae677478367bbd248dbde13553312b7d4dbc702a2f2bbf60c4018d
"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.11, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9":
version: 7.0.12
resolution: "@types/json-schema@npm:7.0.12"
checksum: 00239e97234eeb5ceefb0c1875d98ade6e922bfec39dd365ec6bd360b5c2f825e612ac4f6e5f1d13601b8b30f378f15e6faa805a3a732f4a1bbe61915163d293
languageName: node
linkType: hard
@@ -1252,10 +1251,10 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:^20.4.0":
version: 20.4.0
resolution: "@types/node@npm:20.4.0"
checksum: 8ad632ee131611651fc5f4ac3a47427640e2492ab314fe1c4d0c3b97af71784ef48c53221d5f9922aab4724375dcb4f33137b3107ba2c356d9366216a31678aa
"@types/node@npm:*, @types/node@npm:^20.4.2":
version: 20.4.2
resolution: "@types/node@npm:20.4.2"
checksum: 99e544ea7560d51f01f95627fc40394c24a13da8f041121a0da13e4ef0a2aa332932eaf9a5e8d0e30d1c07106e96a183be392cbba62e8cf0bf6a085d5c0f4149
languageName: node
linkType: hard
@@ -1365,44 +1364,48 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:^5.61.0":
version: 5.61.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.61.0"
"@typescript-eslint/eslint-plugin@npm:^6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/eslint-plugin@npm:6.0.0"
dependencies:
"@eslint-community/regexpp": ^4.4.0
"@typescript-eslint/scope-manager": 5.61.0
"@typescript-eslint/type-utils": 5.61.0
"@typescript-eslint/utils": 5.61.0
"@eslint-community/regexpp": ^4.5.0
"@typescript-eslint/scope-manager": 6.0.0
"@typescript-eslint/type-utils": 6.0.0
"@typescript-eslint/utils": 6.0.0
"@typescript-eslint/visitor-keys": 6.0.0
debug: ^4.3.4
grapheme-splitter: ^1.0.4
graphemer: ^1.4.0
ignore: ^5.2.0
ignore: ^5.2.4
natural-compare: ^1.4.0
natural-compare-lite: ^1.4.0
semver: ^7.3.7
tsutils: ^3.21.0
semver: ^7.5.0
ts-api-utils: ^1.0.1
peerDependencies:
"@typescript-eslint/parser": ^5.0.0
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
"@typescript-eslint/parser": ^6.0.0 || ^6.0.0-alpha
eslint: ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: d9e891fb43ccb75322fc40d58d02479f98bd3c962db71075438868b13f579643d714a24b5477a827be7ca2e7e9f6058c406241b6696a6395c6fcbd6de76e015c
checksum: 863f30b8ceb24d104fc8a41774e4f597a35525533aa99721198293b51628a2d986dcc6413893f27eb9db5a49c2fd2cc91d3aece8ed23d590f3eb4e9939c3d6ad
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:^5.61.0":
version: 5.61.0
resolution: "@typescript-eslint/parser@npm:5.61.0"
"@typescript-eslint/parser@npm:^6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/parser@npm:6.0.0"
dependencies:
"@typescript-eslint/scope-manager": 5.61.0
"@typescript-eslint/types": 5.61.0
"@typescript-eslint/typescript-estree": 5.61.0
"@typescript-eslint/scope-manager": 6.0.0
"@typescript-eslint/types": 6.0.0
"@typescript-eslint/typescript-estree": 6.0.0
"@typescript-eslint/visitor-keys": 6.0.0
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
eslint: ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 2422bca03ecc6830700aaa739ec46b8e9ab6c0a47a67f140dc6b62a42a8b98997e73bce52c6a010b8a9b461211c46ba865d5b7f680a7823cf5c245d3b61f7fd5
checksum: a22f0c8f67eb244134f9d79d78faf1b6e2c0965495d78eef94a5680868f3d0fd9446a3ce5dc1e36dde02587da5d962944f3d83679c712d0b819ac99cdb9f7143
languageName: node
linkType: hard
@@ -1416,20 +1419,30 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:5.61.0":
version: 5.61.0
resolution: "@typescript-eslint/type-utils@npm:5.61.0"
"@typescript-eslint/scope-manager@npm:6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/scope-manager@npm:6.0.0"
dependencies:
"@typescript-eslint/typescript-estree": 5.61.0
"@typescript-eslint/utils": 5.61.0
"@typescript-eslint/types": 6.0.0
"@typescript-eslint/visitor-keys": 6.0.0
checksum: 450015be6454f953d0ea0da020ab47597e96a7a15c1002eed16c57430783bd7b045513d57a126606fb35e8971f1ce65fbefd845e3b5496bf75284cbe1681d0b9
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/type-utils@npm:6.0.0"
dependencies:
"@typescript-eslint/typescript-estree": 6.0.0
"@typescript-eslint/utils": 6.0.0
debug: ^4.3.4
tsutils: ^3.21.0
ts-api-utils: ^1.0.1
peerDependencies:
eslint: "*"
eslint: ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: f0203fd48c6218f004dd73a9a71ba4cf97f015d0f13a7b3c821a3ba7ec814839bae270a1db589184ca7091fe54815a3171d1993e8a25200bf33e131bd6e855d4
checksum: 53f46237891cfa738f6a4bc766a4dbb8d745b1cb9cbe2d2b40f2a4abcf0327d4aa92d9ce5361e87cd26d82e0159f358e28b0c67759eb053c4fd752654dc9dcb1
languageName: node
linkType: hard
@@ -1447,6 +1460,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/types@npm:6.0.0"
checksum: a2e232b66b0b057152f4a94d7e0be75f32e389c9c1ec9ed9901ed5aab6e5df08c07bde9865710e315d835e4400ec2232f9c3c525b6edf8a85675ebfbfb69d3a5
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:5.61.0, @typescript-eslint/typescript-estree@npm:^5.13.0":
version: 5.61.0
resolution: "@typescript-eslint/typescript-estree@npm:5.61.0"
@@ -1465,6 +1485,24 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/typescript-estree@npm:6.0.0"
dependencies:
"@typescript-eslint/types": 6.0.0
"@typescript-eslint/visitor-keys": 6.0.0
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
semver: ^7.5.0
ts-api-utils: ^1.0.1
peerDependenciesMeta:
typescript:
optional: true
checksum: 6214ff9cc3c4fd7fe03f846e96a498ecf85916083bb60d419bc5a12142cff912670032b1de5ea52ab353ca7eeb4e1cc8fa475a22958b010043c88e274df49859
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:^4.8.2":
version: 4.33.0
resolution: "@typescript-eslint/typescript-estree@npm:4.33.0"
@@ -1483,7 +1521,25 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.61.0, @typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.57.0":
"@typescript-eslint/utils@npm:6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/utils@npm:6.0.0"
dependencies:
"@eslint-community/eslint-utils": ^4.3.0
"@types/json-schema": ^7.0.11
"@types/semver": ^7.3.12
"@typescript-eslint/scope-manager": 6.0.0
"@typescript-eslint/types": 6.0.0
"@typescript-eslint/typescript-estree": 6.0.0
eslint-scope: ^5.1.1
semver: ^7.5.0
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
checksum: 94b9b616282f6fa1ae50ba371a482a3c8c50268ef8039b4e86d29c445e95025c819358a5cc9955c4668482d97ef026e7a49e7f4b3a4685347136ef5bbd297e4d
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.57.0":
version: 5.61.0
resolution: "@typescript-eslint/utils@npm:5.61.0"
dependencies:
@@ -1521,6 +1577,16 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/visitor-keys@npm:6.0.0"
dependencies:
"@typescript-eslint/types": 6.0.0
eslint-visitor-keys: ^3.4.1
checksum: b0d9848a4490174db1d25b5f336548bb11dde4e0ce664c3dc341bed89fb3a3ada091aeb7f5d2d371433815332d93339c6cb77f7a24469c329c3d055b15237bfa
languageName: node
linkType: hard
"@webassemblyjs/ast@npm:1.11.5, @webassemblyjs/ast@npm:^1.11.5":
version: 1.11.5
resolution: "@webassemblyjs/ast@npm:1.11.5"
@@ -3624,13 +3690,13 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-jest@npm:^27.2.2":
version: 27.2.2
resolution: "eslint-plugin-jest@npm:27.2.2"
"eslint-plugin-jest@npm:^27.2.3":
version: 27.2.3
resolution: "eslint-plugin-jest@npm:27.2.3"
dependencies:
"@typescript-eslint/utils": ^5.10.0
peerDependencies:
"@typescript-eslint/eslint-plugin": ^5.0.0
"@typescript-eslint/eslint-plugin": ^5.0.0 || ^6.0.0
eslint: ^7.0.0 || ^8.0.0
jest: "*"
peerDependenciesMeta:
@@ -3638,7 +3704,7 @@ __metadata:
optional: true
jest:
optional: true
checksum: 98b63252d985f5dedf36ce9587dd4a0d24daf71ca8a997258343402c0d33ddd5070502378dafd9ac7fc0ef2e0d557b5c77f18e09ad73c71a52de8061db88293f
checksum: 4c7e07f52f17749ac6fd0ff5fcd5ce30b88983ba31eeee322e4d48859f55eaa112f06172e586ad2031c00ff28bb2dfdc3d35c83895251b9c0e860fa47dfc5ff4
languageName: node
linkType: hard
@@ -3887,7 +3953,7 @@ __metadata:
languageName: node
linkType: hard
"eventemitter3@npm:^4.0.0, eventemitter3@npm:^4.0.7":
"eventemitter3@npm:^4.0.0":
version: 4.0.7
resolution: "eventemitter3@npm:4.0.7"
checksum: 1875311c42fcfe9c707b2712c32664a245629b42bb0a5a84439762dd0fd637fc54d078155ea83c2af9e0323c9ac13687e03cfba79b03af9f40c89b4960099374
@@ -4710,6 +4776,13 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"grapheme-splitter@npm:^1.0.4":
version: 1.0.4
resolution: "grapheme-splitter@npm:1.0.4"
checksum: 0c22ec54dee1b05cd480f78cf14f732cb5b108edc073572c4ec205df4cd63f30f8db8025afc5debc8835a8ddeacf648a1c7992fe3dcd6ad38f9a476d84906620
languageName: node
linkType: hard
"graphemer@npm:^1.4.0":
version: 1.4.0
resolution: "graphemer@npm:1.4.0"
@@ -6282,15 +6355,15 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"nock@npm:^13.3.1":
version: 13.3.1
resolution: "nock@npm:13.3.1"
"nock@npm:^13.3.2":
version: 13.3.2
resolution: "nock@npm:13.3.2"
dependencies:
debug: ^4.1.0
json-stringify-safe: ^5.0.1
lodash: ^4.17.21
propagate: ^2.0.0
checksum: 0f2a73e8432f6b5650656c53eef99f9e5bbde3df538dc2f07057edc4438cfc61a394c9d06dd82e60f6e86d42433f20f3c04364a1f088beee7bf03a24e3f0fdd0
checksum: 1d7d5fda1816a3a0d2cb47f10283db139fcd15be6975db6f9b260efa781d5f0eeadf9bd7aab6db61191c519dd99bcd4c5c061e77880341be60abc39cd6163c1f
languageName: node
linkType: hard
@@ -7495,9 +7568,9 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"rollup@npm:^3.26.1":
version: 3.26.1
resolution: "rollup@npm:3.26.1"
"rollup@npm:^3.26.2":
version: 3.26.2
resolution: "rollup@npm:3.26.2"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
@@ -7505,7 +7578,7 @@ fsevents@~2.3.2:
optional: true
bin:
rollup: dist/bin/rollup
checksum: 3fd4f88510ec1b54b07309ee63b7b363a1cd4ed6d05e93ec0e883a73df1ffe8bb88169538cb4f2c1ec2d4a7340216f9a8b4b8ce7c2ee054ded725f39d9e3ba36
checksum: 7186beeba0e6fd33b37aa33ede7157e77af0a0be4b75d345a51dab4be5962a8e7a1c5ec8868e7c4cd361b456eb1b47bdb75e5db32ab37a546bed383d06b40384
languageName: node
linkType: hard
@@ -7513,9 +7586,9 @@ fsevents@~2.3.2:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": ^0.75.26
"@polkadot/dev": ^0.76.1
"@polkadot/typegen": "workspace:packages/typegen"
"@types/node": ^20.4.0
"@types/node": ^20.4.2
languageName: unknown
linkType: soft
@@ -7676,14 +7749,14 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"semver@npm:^7.0.0, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3":
version: 7.5.3
resolution: "semver@npm:7.5.3"
"semver@npm:^7.0.0, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.0, semver@npm:^7.5.3":
version: 7.5.4
resolution: "semver@npm:7.5.4"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: 9d58db16525e9f749ad0a696a1f27deabaa51f66e91d2fa2b0db3de3e9644e8677de3b7d7a03f4c15bc81521e0c3916d7369e0572dbde250d9bedf5194e2a8a7
checksum: 12d8ad952fa353b0995bf180cdac205a4068b759a140e5d3c608317098b3575ac2f1e09182206bf2eb26120e1c0ed8fb92c48c592f6099680de56bb071423ca3
languageName: node
linkType: hard
@@ -7867,12 +7940,12 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"smoldot@npm:1.0.9":
version: 1.0.9
resolution: "smoldot@npm:1.0.9"
"smoldot@npm:1.0.11":
version: 1.0.11
resolution: "smoldot@npm:1.0.11"
dependencies:
ws: ^8.8.1
checksum: 7dff98c8d5e7ea14b60a1eaaa1dcb68d47e6bcf01fe004e387676041a0f1c65b079ee94aebd068c81a7899329d9c69c6b442a86c8e6acd0801996a4af5facff0
checksum: 53c60eb8ae3c7d083285115f5094a538c0c1ffeff9d1a20b178a272807d24880f8724eabda0956c1f2d1df11de46b61d30d3821140d98910140e9d01f69e89c9
languageName: node
linkType: hard
@@ -8441,6 +8514,15 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"ts-api-utils@npm:^1.0.1":
version: 1.0.1
resolution: "ts-api-utils@npm:1.0.1"
peerDependencies:
typescript: ">=4.2.0"
checksum: 78794fc7270d295b36c1ac613465b5dc7e7226907a533125b30f177efef9dd630d4e503b00be31b44335eb2ebf9e136ebe97353f8fc5d383885d5fead9d54c09
languageName: node
linkType: hard
"ts-graphviz@npm:^1.5.0":
version: 1.5.2
resolution: "ts-graphviz@npm:1.5.2"