Adjust runtime decoration & typegen (#4996)

This commit is contained in:
Jaco
2022-06-30 14:23:01 +03:00
committed by GitHub
parent f5e89b7530
commit 1664c868df
7 changed files with 14 additions and 17 deletions
+10
View File
@@ -1,6 +1,8 @@
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
export type DefinitionTypeType = string;
export type DefinitionTypeEnum = { _fallback?: DefinitionTypeType } & ({ _enum: DefinitionTypeType[] } | { _enum: Record<string, DefinitionTypeType | null> });
@@ -64,6 +66,14 @@ export type DefinitionsCall = Record<string, {
version: number;
}[]>;
export interface DefinitionCallNamed extends DefinitionCall {
method: string;
name: string;
section: string;
sectionHash: HexString;
version: number;
}
export type DefinitionsTypes = Record<string, DefinitionType>;
export interface Definitions {