mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-10-26 05:15:04 +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/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: []
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user