mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-10-29 13:59:49 +00:00
Fix the lint errors
Most are object keys out of order after the rename (dicle, pezkuwi, bizinikiwi, teyrchains and zagros sort differently from the names they replaced); they are sorted, behaviour is unchanged. The rest: - createClass: header.hash is already the BlockHash type; the `as any` cast is removed - ScProvider: WellKnownChain is a string union in @bizinikiwi/connect, so `string | WellKnownChain` was `string`; the spec parameter says so - ScProvider: the jsonRpcResponses loop is a named async function whose rejection (chain removed, client terminated) is caught explicitly instead of a floating promise - the fake chain in the spec no longer needs a non-null assertion - Extrinsic.hash: redundant non-null assertion removed - metadata-get.mjs writes the 2026 header
This commit is contained in:
1 parent
611d410f28
commit
7c6cac97da
19 files changed
+87
-81
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect, IOption } from '@pezkuwi/types-codec/types';
|
||||
@@ -345,7 +345,7 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
|
||||
this.#hashCache = super.hash as CodecHash;
|
||||
}
|
||||
|
||||
return this.#hashCache!;
|
||||
return this.#hashCache;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types-known authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideModuleType, Registry } from '../types/index.js';
|
||||
@@ -60,9 +60,6 @@ const typesAlias: Record<string, OverrideModuleType> = {
|
||||
paraShared: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
teyrchains: {
|
||||
Id: 'ParaId'
|
||||
},
|
||||
parasDisputes: {
|
||||
ValidatorIndex: 'ParaValidatorIndex'
|
||||
},
|
||||
@@ -94,6 +91,9 @@ const typesAlias: Record<string, OverrideModuleType> = {
|
||||
staking: {
|
||||
Compact: 'CompactAssignments'
|
||||
},
|
||||
teyrchains: {
|
||||
Id: 'ParaId'
|
||||
},
|
||||
treasury: {
|
||||
Proposal: 'TreasuryProposal'
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
@@ -17,7 +17,7 @@ const finalityV1 = {
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
DicleFinalityApi: [finalityV1],
|
||||
ZagrosFinalityApi: [finalityV1],
|
||||
PezkuwiFinalityApi: [finalityV1],
|
||||
PezkuwichainFinalityApi: [finalityV1]
|
||||
PezkuwichainFinalityApi: [finalityV1],
|
||||
ZagrosFinalityApi: [finalityV1]
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||
@@ -16,15 +16,15 @@ import { TypeRegistry } from '../create/index.js';
|
||||
import { Metadata } from './Metadata.js';
|
||||
|
||||
const allData: Record<string, HexString> = {
|
||||
bizinikiwi,
|
||||
dicle,
|
||||
pezkuwi,
|
||||
bizinikiwi
|
||||
pezkuwi
|
||||
};
|
||||
|
||||
const allDataV14: Record<string, HexString> = {
|
||||
bizinikiwi: bizinikiwiV14,
|
||||
dicle: dicleV14,
|
||||
pezkuwi: pezkuwiV14,
|
||||
bizinikiwi: bizinikiwiV14
|
||||
pezkuwi: pezkuwiV14
|
||||
};
|
||||
|
||||
for (const type of ['dicle', 'pezkuwi', 'bizinikiwi'] as const) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import bizinikiwiData from '@pezkuwi/types-support/metadata/v13/bizinikiwi-hex';
|
||||
@@ -8,6 +8,9 @@ import pezkuwiData from '@pezkuwi/types-support/metadata/v13/pezkuwi-hex';
|
||||
import { testMeta } from '../util/testUtil.js';
|
||||
|
||||
testMeta(13, {
|
||||
bizinikiwi: {
|
||||
data: bizinikiwiData
|
||||
},
|
||||
dicle: {
|
||||
data: dicleData,
|
||||
fails: [
|
||||
@@ -17,8 +20,5 @@ testMeta(13, {
|
||||
},
|
||||
pezkuwi: {
|
||||
data: pezkuwiData
|
||||
},
|
||||
bizinikiwi: {
|
||||
data: bizinikiwiData
|
||||
}
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import bizinikiwiData from '@pezkuwi/types-support/metadata/v14/bizinikiwi-hex';
|
||||
@@ -8,13 +8,13 @@ import pezkuwiData from '@pezkuwi/types-support/metadata/v14/pezkuwi-hex';
|
||||
import { testMeta } from '../util/testUtil.js';
|
||||
|
||||
testMeta(14, {
|
||||
bizinikiwi: {
|
||||
data: bizinikiwiData
|
||||
},
|
||||
dicle: {
|
||||
data: dicleData
|
||||
},
|
||||
pezkuwi: {
|
||||
data: pezkuwiData
|
||||
},
|
||||
bizinikiwi: {
|
||||
data: bizinikiwiData
|
||||
}
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @pezkuwi/types authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import assetHubDicleData from '@pezkuwi/types-support/metadata/v15/asset-hub-dicle-hex';
|
||||
@@ -16,13 +16,13 @@ testMeta(15, {
|
||||
'asset-hub-pezkuwi': {
|
||||
data: assetHubPezkuwiData
|
||||
},
|
||||
bizinikiwi: {
|
||||
data: bizinikiwiData
|
||||
},
|
||||
dicle: {
|
||||
data: dicleData
|
||||
},
|
||||
pezkuwi: {
|
||||
data: pezkuwiData
|
||||
},
|
||||
bizinikiwi: {
|
||||
data: bizinikiwiData
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user