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

+5 -5
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @pezkuwi/api-derive authors & contributors
// Copyright 2017-2026 @pezkuwi/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveCustom } from '@pezkuwi/api-base/types';
@@ -61,10 +61,6 @@ const checks: Record<string, Avail> = {
instances: ['membership'],
methods: []
},
teyrchains: {
instances: ['teyrchains', 'registrar'],
methods: []
},
session: {
instances: ['session'],
methods: []
@@ -82,6 +78,10 @@ const checks: Record<string, Avail> = {
methods: [],
withDetect: true
},
teyrchains: {
instances: ['teyrchains', 'registrar'],
methods: []
},
treasury: {
instances: ['treasury'],
methods: []
+2 -2
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @pezkuwi/api-derive authors & contributors
// Copyright 2017-2026 @pezkuwi/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { AnyFunction } from '@pezkuwi/types/types';
@@ -24,7 +24,7 @@ import * as teyrchains from './teyrchains/index.js';
import * as treasury from './treasury/index.js';
import * as tx from './tx/index.js';
export const derive = { accounts, alliance, bagsList, balances, bounties, chain, contracts, council, crowdloan, democracy, elections, imOnline, membership, teyrchains, session, society, staking, technicalCommittee, treasury, tx };
export const derive = { accounts, alliance, bagsList, balances, bounties, chain, contracts, council, crowdloan, democracy, elections, imOnline, membership, session, society, staking, technicalCommittee, teyrchains, treasury, tx };
type DeriveSection<Section> = {
[M in keyof Section]: Section[M] extends AnyFunction