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:
Satoshi Qazi Muhammed authored and SatoshiQaziMuhammed committed 2026-10-08 03:23:10 +04:00
1 parent 611d410f28
commit 7c6cac97da
19 files changed
+87 -81

No files matched your search

+3 -3
View File
@@ -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 { OverrideVersionedType } from '@pezkuwi/types/types';
@@ -26,6 +26,6 @@ export const typesSpec: Record<string, OverrideVersionedType[]> = {
shell,
statemine,
statemint,
zagros,
westmint
westmint,
zagros
};