Split relative & package imports in TS templates (#4310)
* Split relative & package imports in TS templates * Cleanup unneeded spread * Regen with importsAll
This commit is contained in:
@@ -14,8 +14,7 @@ import { stringCamelCase } from '@polkadot/util';
|
|||||||
|
|
||||||
import { compareName, createImports, formatType, initMeta, readTemplate, setImports, writeFile } from '../util';
|
import { compareName, createImports, formatType, initMeta, readTemplate, setImports, writeFile } from '../util';
|
||||||
|
|
||||||
const template = readTemplate('consts');
|
const generateForMetaTemplate = Handlebars.compile(readTemplate('consts'));
|
||||||
const generateForMetaTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ import { stringCamelCase } from '@polkadot/util';
|
|||||||
|
|
||||||
import { compareName, createImports, initMeta, readTemplate, writeFile } from '../util';
|
import { compareName, createImports, initMeta, readTemplate, writeFile } from '../util';
|
||||||
|
|
||||||
const template = readTemplate('errors');
|
const generateForMetaTemplate = Handlebars.compile(readTemplate('errors'));
|
||||||
const generateForMetaTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function generateForMeta (meta: Metadata, dest: string, isStrict: boolean): void {
|
function generateForMeta (meta: Metadata, dest: string, isStrict: boolean): void {
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ import { stringCamelCase } from '@polkadot/util';
|
|||||||
|
|
||||||
import { compareName, createImports, formatType, initMeta, readTemplate, setImports, writeFile } from '../util';
|
import { compareName, createImports, formatType, initMeta, readTemplate, setImports, writeFile } from '../util';
|
||||||
|
|
||||||
const template = readTemplate('events');
|
const generateForMetaTemplate = Handlebars.compile(readTemplate('events'));
|
||||||
const generateForMetaTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ const primitiveClasses = {
|
|||||||
Raw
|
Raw
|
||||||
};
|
};
|
||||||
|
|
||||||
const template = readTemplate('interfaceRegistry');
|
const generateInterfaceTypesTemplate = Handlebars.compile(readTemplate('interfaceRegistry'));
|
||||||
const generateInterfaceTypesTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export function generateInterfaceTypes (importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, dest: string): void {
|
export function generateInterfaceTypes (importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, dest: string): void {
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import { stringCamelCase } from '@polkadot/util';
|
|||||||
import { compareName, createImports, formatType, getSimilarTypes, initMeta, readTemplate, setImports, TypeImports, writeFile } from '../util';
|
import { compareName, createImports, formatType, getSimilarTypes, initMeta, readTemplate, setImports, TypeImports, writeFile } from '../util';
|
||||||
import { ModuleTypes } from '../util/imports';
|
import { ModuleTypes } from '../util/imports';
|
||||||
|
|
||||||
|
const generateForMetaTemplate = Handlebars.compile(readTemplate('query'));
|
||||||
|
|
||||||
// From a storage entry metadata, we return [args, returnType]
|
// From a storage entry metadata, we return [args, returnType]
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function entrySignature (lookup: PortableRegistry, allDefs: Record<string, ModuleTypes>, registry: Registry, storageEntry: StorageEntryMetadataLatest, imports: TypeImports): [boolean, string, string, string] {
|
function entrySignature (lookup: PortableRegistry, allDefs: Record<string, ModuleTypes>, registry: Registry, storageEntry: StorageEntryMetadataLatest, imports: TypeImports): [boolean, string, string, string] {
|
||||||
@@ -63,9 +65,6 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record<string, Modul
|
|||||||
throw new Error(`entryArgs: Cannot parse args of entry ${storageEntry.name.toString()}`);
|
throw new Error(`entryArgs: Cannot parse args of entry ${storageEntry.name.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const template = readTemplate('query');
|
|
||||||
const generateForMetaTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function generateForMeta (registry: Registry, meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
function generateForMeta (registry: Registry, meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
||||||
writeFile(dest, (): string => {
|
writeFile(dest, (): string => {
|
||||||
|
|||||||
@@ -24,10 +24,9 @@ interface ModuleDef {
|
|||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StorageKeyTye = 'StorageKey | string | Uint8Array | any';
|
const StorageKeyType = 'StorageKey | string | Uint8Array | any';
|
||||||
|
|
||||||
const template = readTemplate('rpc');
|
const generateRpcTypesTemplate = Handlebars.compile(readTemplate('rpc'));
|
||||||
const generateRpcTypesTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Record<string, Definitions>, dest: string, extraTypes: ExtraTypes = {}): void {
|
export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Record<string, Definitions>, dest: string, extraTypes: ExtraTypes = {}): void {
|
||||||
@@ -62,19 +61,19 @@ export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Rec
|
|||||||
|
|
||||||
if (methodName === 'getStorage') {
|
if (methodName === 'getStorage') {
|
||||||
generic = 'T = Codec';
|
generic = 'T = Codec';
|
||||||
args = [`key: ${StorageKeyTye}, block?: Hash | Uint8Array | string`];
|
args = [`key: ${StorageKeyType}, block?: Hash | Uint8Array | string`];
|
||||||
type = 'T';
|
type = 'T';
|
||||||
} else if (methodName === 'queryStorage') {
|
} else if (methodName === 'queryStorage') {
|
||||||
generic = 'T = Codec[]';
|
generic = 'T = Codec[]';
|
||||||
args = [`keys: Vec<StorageKey> | (${StorageKeyTye})[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string`];
|
args = [`keys: Vec<StorageKey> | (${StorageKeyType})[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string`];
|
||||||
type = '[Hash, T][]';
|
type = '[Hash, T][]';
|
||||||
} else if (methodName === 'queryStorageAt') {
|
} else if (methodName === 'queryStorageAt') {
|
||||||
generic = 'T = Codec[]';
|
generic = 'T = Codec[]';
|
||||||
args = [`keys: Vec<StorageKey> | (${StorageKeyTye})[], at?: Hash | Uint8Array | string`];
|
args = [`keys: Vec<StorageKey> | (${StorageKeyType})[], at?: Hash | Uint8Array | string`];
|
||||||
type = 'T';
|
type = 'T';
|
||||||
} else if (methodName === 'subscribeStorage') {
|
} else if (methodName === 'subscribeStorage') {
|
||||||
generic = 'T = Codec[]';
|
generic = 'T = Codec[]';
|
||||||
args = [`keys?: Vec<StorageKey> | (${StorageKeyTye})[]`];
|
args = [`keys?: Vec<StorageKey> | (${StorageKeyType})[]`];
|
||||||
type = 'T';
|
type = 'T';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ interface Imports extends TypeImports {
|
|||||||
interfaces: [string, string][];
|
interfaces: [string, string][];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const generateTsDefIndexTemplate = Handlebars.compile(readTemplate('tsDef/index'));
|
||||||
|
const generateTsDefModuleTypesTemplate = Handlebars.compile(readTemplate('tsDef/moduleTypes'));
|
||||||
|
const generateTsDefTypesTemplate = Handlebars.compile(readTemplate('tsDef/types'));
|
||||||
|
|
||||||
// helper to generate a `readonly <Name>: <Type>;` getter
|
// helper to generate a `readonly <Name>: <Type>;` getter
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export function createGetter (definitions: Record<string, ModuleTypes>, name = '', type: string, imports: TypeImports): string {
|
export function createGetter (definitions: Record<string, ModuleTypes>, name = '', type: string, imports: TypeImports): string {
|
||||||
@@ -248,15 +252,6 @@ function generateInterfaces (registry: Registry, definitions: Record<string, Mod
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const templateIndex = readTemplate('tsDef/index');
|
|
||||||
const generateTsDefIndexTemplate = Handlebars.compile(templateIndex);
|
|
||||||
|
|
||||||
const templateModuleTypes = readTemplate('tsDef/moduleTypes');
|
|
||||||
const generateTsDefModuleTypesTemplate = Handlebars.compile(templateModuleTypes);
|
|
||||||
|
|
||||||
const templateTypes = readTemplate('tsDef/types');
|
|
||||||
const generateTsDefTypesTemplate = Handlebars.compile(templateTypes);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export function generateTsDefFor (registry: Registry, importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, defName: string, { types }: { types: Record<string, any> }, outputDir: string): void {
|
export function generateTsDefFor (registry: Registry, importDefinitions: { [importPath: string]: Record<string, ModuleTypes> }, defName: string, { types }: { types: Record<string, any> }, outputDir: string): void {
|
||||||
const imports = { ...createImports(importDefinitions, { types }), interfaces: [] } as Imports;
|
const imports = { ...createImports(importDefinitions, { types }), interfaces: [] } as Imports;
|
||||||
|
|||||||
@@ -20,15 +20,14 @@ const MAPPED_NAMES: Record<string, string> = {
|
|||||||
new: 'updated'
|
new: 'updated'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const generateForMetaTemplate = Handlebars.compile(readTemplate('tx'));
|
||||||
|
|
||||||
function mapName (_name: Text): string {
|
function mapName (_name: Text): string {
|
||||||
const name = stringCamelCase(_name);
|
const name = stringCamelCase(_name);
|
||||||
|
|
||||||
return MAPPED_NAMES[name] || name;
|
return MAPPED_NAMES[name] || name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const template = readTemplate('tx');
|
|
||||||
const generateForMetaTemplate = Handlebars.compile(template);
|
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function generateForMeta (registry: Registry, meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
function generateForMeta (registry: Registry, meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
||||||
writeFile(dest, (): string => {
|
writeFile(dest, (): string => {
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/api/types/consts' {
|
declare module '@polkadot/api/types/consts' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface AugmentedConsts<ApiType extends ApiTypes> {
|
export interface AugmentedConsts<ApiType extends ApiTypes> {
|
||||||
{{#each modules}}
|
{{#each modules}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/api/types/errors' {
|
declare module '@polkadot/api/types/errors' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface AugmentedErrors<ApiType extends ApiTypes> {
|
export interface AugmentedErrors<ApiType extends ApiTypes> {
|
||||||
{{#each modules}}
|
{{#each modules}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/api/types/events' {
|
declare module '@polkadot/api/types/events' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||||
{{#each modules}}
|
{{#each modules}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/types/types/registry' {
|
declare module '@polkadot/types/types/registry' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface InterfaceTypes {
|
export interface InterfaceTypes {
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/types/lookup' {
|
declare module '@polkadot/types/lookup' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
{{{this}}}
|
{{{this}}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/api/types/storage' {
|
declare module '@polkadot/api/types/storage' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface AugmentedQueries<ApiType extends ApiTypes> {
|
export interface AugmentedQueries<ApiType extends ApiTypes> {
|
||||||
{{#each modules}}
|
{{#each modules}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/rpc-core/types.jsonrpc' {
|
declare module '@polkadot/rpc-core/types.jsonrpc' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface RpcInterface {
|
export interface RpcInterface {
|
||||||
{{#each modules}}
|
{{#each modules}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
{{{ imports }}}
|
{{{ importsAll }}}
|
||||||
|
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
{{{this}}}
|
{{{this}}}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{{> header }}
|
{{> header }}
|
||||||
|
|
||||||
|
{{{ importsRelative }}}
|
||||||
|
|
||||||
declare module '@polkadot/api/types/submittable' {
|
declare module '@polkadot/api/types/submittable' {
|
||||||
{{{ imports }}}
|
{{{ importsPackage }}}
|
||||||
|
|
||||||
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
||||||
{{#each modules}}
|
{{#each modules}}
|
||||||
|
|||||||
@@ -29,36 +29,47 @@ const NO_CODEC = ['Tuple', 'VecFixed'];
|
|||||||
|
|
||||||
export const HEADER = (type: 'chain' | 'defs'): string => `// Auto-generated via \`yarn polkadot-types-from-${type}\`, do not edit\n/* eslint-disable */\n\n`;
|
export const HEADER = (type: 'chain' | 'defs'): string => `// Auto-generated via \`yarn polkadot-types-from-${type}\`, do not edit\n/* eslint-disable */\n\n`;
|
||||||
|
|
||||||
|
function extractImports ({ imports, types }: This): string[] {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
file: '@polkadot/types',
|
||||||
|
types: [
|
||||||
|
...Object.keys(imports.codecTypes).filter((name) => !NO_CODEC.includes(name)),
|
||||||
|
...Object.keys(imports.extrinsicTypes),
|
||||||
|
...Object.keys(imports.genericTypes),
|
||||||
|
...Object.keys(imports.metadataTypes),
|
||||||
|
...Object.keys(imports.primitiveTypes)
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
file: '@polkadot/types/types',
|
||||||
|
types: Object.keys(imports.typesTypes)
|
||||||
|
},
|
||||||
|
...types
|
||||||
|
]
|
||||||
|
.filter(({ types }) => types.length)
|
||||||
|
.sort(({ file }, b) => file.localeCompare(b.file))
|
||||||
|
.map(({ file, types }) => `import type { ${types.sort().join(', ')} } from '${file}';`);
|
||||||
|
}
|
||||||
|
|
||||||
Handlebars.registerPartial({
|
Handlebars.registerPartial({
|
||||||
header: Handlebars.compile(readTemplate('header'))
|
header: Handlebars.compile(readTemplate('header'))
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.registerHelper({
|
Handlebars.registerHelper({
|
||||||
imports () {
|
importsAll () {
|
||||||
const { imports, types } = this as unknown as This;
|
return extractImports(this as unknown as This)
|
||||||
const defs = [
|
.join('\n');
|
||||||
{
|
},
|
||||||
file: '@polkadot/types',
|
importsPackage () {
|
||||||
types: [
|
return extractImports(this as unknown as This)
|
||||||
...Object.keys(imports.codecTypes).filter((name) => !NO_CODEC.includes(name)),
|
.filter((l) => !l.includes("from '."))
|
||||||
...Object.keys(imports.extrinsicTypes),
|
.join('\n ');
|
||||||
...Object.keys(imports.genericTypes),
|
},
|
||||||
...Object.keys(imports.metadataTypes),
|
importsRelative () {
|
||||||
...Object.keys(imports.primitiveTypes)
|
return extractImports(this as unknown as This)
|
||||||
]
|
.filter((l) => l.includes("from '."))
|
||||||
},
|
.join('\n');
|
||||||
{
|
|
||||||
file: '@polkadot/types/types',
|
|
||||||
types: Object.keys(imports.typesTypes)
|
|
||||||
},
|
|
||||||
...types
|
|
||||||
];
|
|
||||||
|
|
||||||
return [...defs].sort((a, b) => a.file.localeCompare(b.file)).reduce((result, { file, types }): string => {
|
|
||||||
return types.length
|
|
||||||
? `${result}${result.length ? ' ' : ''}import type { ${types.sort().join(', ')} } from '${file}';\n`
|
|
||||||
: result;
|
|
||||||
}, '');
|
|
||||||
},
|
},
|
||||||
trim (options: { fn: (self: unknown) => string }) {
|
trim (options: { fn: (self: unknown) => string }) {
|
||||||
return options.fn(this).trim();
|
return options.fn(this).trim();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Compact, Struct, bool, u32, u64, u8 } from '@polkadot/types';
|
import type { Bytes, Compact, Struct, bool, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AccountId, BalanceOf } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BalanceOf } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AssetApproval */
|
/** @name AssetApproval */
|
||||||
export interface AssetApproval extends Struct {
|
export interface AssetApproval extends Struct {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, Vec } from '@polkadot/types';
|
import type { Struct, Vec } from '@polkadot/types';
|
||||||
import type { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains';
|
import type { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains';
|
||||||
import type { AccountId, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
|
|
||||||
/** @name BlockAttestations */
|
/** @name BlockAttestations */
|
||||||
export interface BlockAttestations extends Struct {
|
export interface BlockAttestations extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, Text, Vec } from '@polkadot/types';
|
import type { Bytes, Enum, Text, Vec } from '@polkadot/types';
|
||||||
import type { Hash } from '@polkadot/types/interfaces/runtime';
|
import type { Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ExtrinsicOrHash */
|
/** @name ExtrinsicOrHash */
|
||||||
export interface ExtrinsicOrHash extends Enum {
|
export interface ExtrinsicOrHash extends Enum {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Option } from '@polkadot/types';
|
import type { Enum, Option } from '@polkadot/types';
|
||||||
import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name UncleEntryItem */
|
/** @name UncleEntryItem */
|
||||||
export interface UncleEntryItem extends Enum {
|
export interface UncleEntryItem extends Enum {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types';
|
import type { Enum, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { Hash, Header } from '@polkadot/types/interfaces/runtime';
|
import type { Hash, Header } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AllowedSlots */
|
/** @name AllowedSlots */
|
||||||
export interface AllowedSlots extends Enum {
|
export interface AllowedSlots extends Enum {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Set, Struct, U8aFixed } from '@polkadot/types';
|
import type { Enum, Set, Struct, U8aFixed } from '@polkadot/types';
|
||||||
import type { Balance, BlockNumber, LockIdentifier } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, BlockNumber, LockIdentifier } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AccountData */
|
/** @name AccountData */
|
||||||
export interface AccountData extends Struct {
|
export interface AccountData extends Struct {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types';
|
import type { Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types';
|
||||||
import type { EcdsaSignature } from '@polkadot/types/interfaces/extrinsics';
|
import type { EcdsaSignature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime';
|
import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name BeefyCommitment */
|
/** @name BeefyCommitment */
|
||||||
export interface BeefyCommitment extends Struct {
|
export interface BeefyCommitment extends Struct {
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BitVec, Bytes, Enum, Null, Struct, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
import type { BitVec, Bytes, Enum, Null, Struct, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics';
|
import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
|
import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { AccountId, Balance, BlockNumber, H256, Header, MultiSigner, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, H256, Header, MultiSigner, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name BridgedBlockHash */
|
/** @name BridgedBlockHash */
|
||||||
export interface BridgedBlockHash extends H256 {}
|
export interface BridgedBlockHash extends H256 {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Struct, Vec, u32 } from '@polkadot/types';
|
import type { Enum, Struct, Vec, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name CollectiveOrigin */
|
/** @name CollectiveOrigin */
|
||||||
export interface CollectiveOrigin extends Enum {
|
export interface CollectiveOrigin extends Enum {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { U8aFixed } from '@polkadot/types';
|
import type { U8aFixed } from '@polkadot/types';
|
||||||
import type { AccountId } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AuthorityId */
|
/** @name AuthorityId */
|
||||||
export interface AuthorityId extends AccountId {}
|
export interface AuthorityId extends AccountId {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Compact, Enum, Null, Option, Raw, Struct, Text, U8aFixed, bool, u32, u64, u8 } from '@polkadot/types';
|
import type { Bytes, Compact, Enum, Null, Option, Raw, Struct, Text, U8aFixed, bool, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber, Hash, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, Hash, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AliveContractInfo */
|
/** @name AliveContractInfo */
|
||||||
export interface AliveContractInfo extends Struct {
|
export interface AliveContractInfo extends Struct {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BTreeMap, Bytes, Enum, Option, Raw, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
import type { BTreeMap, Bytes, Enum, Option, Raw, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
||||||
import type { PortableType } from '@polkadot/types/interfaces/metadata';
|
import type { PortableType } from '@polkadot/types/interfaces/metadata';
|
||||||
import type { Si0Type, SiLookupTypeId, SiPath } from '@polkadot/types/interfaces/scaleInfo';
|
import type { Si0Type, SiLookupTypeId, SiPath } from '@polkadot/types/interfaces/scaleInfo';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name ContractConstructorSpecLatest */
|
/** @name ContractConstructorSpecLatest */
|
||||||
export interface ContractConstructorSpecLatest extends ContractConstructorSpecV2 {}
|
export interface ContractConstructorSpecLatest extends ContractConstructorSpecV2 {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Option, Struct, u32 } from '@polkadot/types';
|
import type { Enum, Option, Struct, u32 } from '@polkadot/types';
|
||||||
import type { LeasePeriod } from '@polkadot/types/interfaces/parachains';
|
import type { LeasePeriod } from '@polkadot/types/interfaces/parachains';
|
||||||
import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name FundIndex */
|
/** @name FundIndex */
|
||||||
export interface FundIndex extends u32 {}
|
export interface FundIndex extends u32 {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, U8aFixed, u32, u64 } from '@polkadot/types';
|
import type { Struct, U8aFixed, u32, u64 } from '@polkadot/types';
|
||||||
import type { Weight } from '@polkadot/types/interfaces/runtime';
|
import type { Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ConfigData */
|
/** @name ConfigData */
|
||||||
export interface ConfigData extends Struct {
|
export interface ConfigData extends Struct {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types';
|
import type { Bytes, Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types';
|
||||||
import type { Vote, VoteThreshold } from '@polkadot/types/interfaces/elections';
|
import type { Vote, VoteThreshold } from '@polkadot/types/interfaces/elections';
|
||||||
import type { AccountId, Balance, BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AccountVote */
|
/** @name AccountVote */
|
||||||
export interface AccountVote extends Enum {
|
export interface AccountVote extends Enum {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Compact, Enum, GenericVote, Struct, u32 } from '@polkadot/types';
|
import type { Compact, Enum, GenericVote, Struct, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ApprovalFlag */
|
/** @name ApprovalFlag */
|
||||||
export interface ApprovalFlag extends u32 {}
|
export interface ApprovalFlag extends u32 {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, bool } from '@polkadot/types';
|
import type { Struct, bool } from '@polkadot/types';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
|
|
||||||
/** @name CreatedBlock */
|
/** @name CreatedBlock */
|
||||||
export interface CreatedBlock extends Struct {
|
export interface CreatedBlock extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, GenericEthereumAccountId, GenericEthereumLookupSource, Option, Struct, U256, U64, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
import type { Bytes, Enum, GenericEthereumAccountId, GenericEthereumLookupSource, Option, Struct, U256, U64, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
||||||
import type { BlockNumber, H160, H2048, H256, H64 } from '@polkadot/types/interfaces/runtime';
|
import type { BlockNumber, H160, H2048, H256, H64 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name BlockV0 */
|
/** @name BlockV0 */
|
||||||
export interface BlockV0 extends Struct {
|
export interface BlockV0 extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, Struct, Text, Vec, u256 } from '@polkadot/types';
|
import type { Bytes, Enum, Struct, Text, Vec, u256 } from '@polkadot/types';
|
||||||
import type { H160, H256 } from '@polkadot/types/interfaces/runtime';
|
import type { H160, H256 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name EvmAccount */
|
/** @name EvmAccount */
|
||||||
export interface EvmAccount extends Struct {
|
export interface EvmAccount extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericExtrinsicPayloadUnknown, GenericExtrinsicPayloadV4, GenericExtrinsicSignatureV4, GenericExtrinsicUnknown, GenericExtrinsicV4, GenericImmortalEra, GenericMortalEra, GenericSignerPayload, U8aFixed } from '@polkadot/types';
|
import type { Enum, GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericExtrinsicPayloadUnknown, GenericExtrinsicPayloadV4, GenericExtrinsicSignatureV4, GenericExtrinsicUnknown, GenericExtrinsicV4, GenericImmortalEra, GenericMortalEra, GenericSignerPayload, U8aFixed } from '@polkadot/types';
|
||||||
import type { H512 } from '@polkadot/types/interfaces/runtime';
|
import type { H512 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AnySignature */
|
/** @name AnySignature */
|
||||||
export interface AnySignature extends H512 {}
|
export interface AnySignature extends H512 {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Compact, Enum, Struct } from '@polkadot/types';
|
import type { Compact, Enum, Struct } from '@polkadot/types';
|
||||||
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AssetOptions */
|
/** @name AssetOptions */
|
||||||
export interface AssetOptions extends Struct {
|
export interface AssetOptions extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, u32 } from '@polkadot/types';
|
import type { Struct, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ActiveGilt */
|
/** @name ActiveGilt */
|
||||||
export interface ActiveGilt extends Struct {
|
export interface ActiveGilt extends Struct {
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BTreeSet, Bytes, Enum, Option, Struct, U64, Vec, u32, u64 } from '@polkadot/types';
|
import type { BTreeSet, Bytes, Enum, Option, Struct, U64, Vec, u32, u64 } from '@polkadot/types';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline';
|
import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline';
|
||||||
import type { BlockNumber, Hash, Header } from '@polkadot/types/interfaces/runtime';
|
import type { BlockNumber, Hash, Header } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { MembershipProof } from '@polkadot/types/interfaces/session';
|
import type { MembershipProof } from '@polkadot/types/interfaces/session';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AuthorityIndex */
|
/** @name AuthorityIndex */
|
||||||
export interface AuthorityIndex extends u64 {}
|
export interface AuthorityIndex extends u64 {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Data, Enum, Option, Set, Struct, Vec, u32 } from '@polkadot/types';
|
import type { Data, Enum, Option, Set, Struct, Vec, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name IdentityFields */
|
/** @name IdentityFields */
|
||||||
export interface IdentityFields extends Set {
|
export interface IdentityFields extends Set {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Struct, Vec, u32 } from '@polkadot/types';
|
import type { Bytes, Struct, Vec, u32 } from '@polkadot/types';
|
||||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { BlockNumber } from '@polkadot/types/interfaces/runtime';
|
import type { BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
|
|
||||||
/** @name AuthIndex */
|
/** @name AuthIndex */
|
||||||
export interface AuthIndex extends u32 {}
|
export interface AuthIndex extends u32 {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, bool, u8 } from '@polkadot/types';
|
import type { Struct, bool, u8 } from '@polkadot/types';
|
||||||
import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name CallIndex */
|
/** @name CallIndex */
|
||||||
export interface CallIndex extends ITuple<[u8, u8]> {}
|
export interface CallIndex extends ITuple<[u8, u8]> {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, Option, PortableRegistry, Struct, Text, Type, Vec, bool, u8 } from '@polkadot/types';
|
import type { Bytes, Enum, Option, PortableRegistry, Struct, Text, Type, Vec, bool, u8 } from '@polkadot/types';
|
||||||
import type { Si1Field, Si1LookupTypeId, Si1Type, SiLookupTypeId } from '@polkadot/types/interfaces/scaleInfo';
|
import type { Si1Field, Si1LookupTypeId, Si1Type, SiLookupTypeId } from '@polkadot/types/interfaces/scaleInfo';
|
||||||
|
|
||||||
/** @name ErrorMetadataLatest */
|
/** @name ErrorMetadataLatest */
|
||||||
export interface ErrorMetadataLatest extends ErrorMetadataV14 {}
|
export interface ErrorMetadataLatest extends ErrorMetadataV14 {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Struct } from '@polkadot/types';
|
import type { Bytes, Struct } from '@polkadot/types';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
|
|
||||||
/** @name MmrLeafProof */
|
/** @name MmrLeafProof */
|
||||||
export interface MmrLeafProof extends Struct {
|
export interface MmrLeafProof extends Struct {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Struct, U8aFixed, Vec } from '@polkadot/types';
|
import type { Bytes, Struct, U8aFixed, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, Hash, Perbill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Hash, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name DeferredOffenceOf */
|
/** @name DeferredOffenceOf */
|
||||||
export interface DeferredOffenceOf extends ITuple<[Vec<OffenceDetails>, Vec<Perbill>, SessionIndex]> {}
|
export interface DeferredOffenceOf extends ITuple<[Vec<OffenceDetails>, Vec<Perbill>, SessionIndex]> {}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BTreeMap, BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u32 } from '@polkadot/types';
|
import type { BTreeMap, BitVec, Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u32 } from '@polkadot/types';
|
||||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, Header, StorageProof, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
|
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AbridgedCandidateReceipt */
|
/** @name AbridgedCandidateReceipt */
|
||||||
export interface AbridgedCandidateReceipt extends Struct {
|
export interface AbridgedCandidateReceipt extends Struct {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Option, Struct } from '@polkadot/types';
|
import type { Option, Struct } from '@polkadot/types';
|
||||||
import type { Balance, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { DispatchClass } from '@polkadot/types/interfaces/system';
|
import type { DispatchClass } from '@polkadot/types/interfaces/system';
|
||||||
|
|
||||||
/** @name FeeDetails */
|
/** @name FeeDetails */
|
||||||
export interface FeeDetails extends Struct {
|
export interface FeeDetails extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Struct } from '@polkadot/types';
|
import type { Enum, Struct } from '@polkadot/types';
|
||||||
import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ProxyAnnouncement */
|
/** @name ProxyAnnouncement */
|
||||||
export interface ProxyAnnouncement extends Struct {
|
export interface ProxyAnnouncement extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, Struct } from '@polkadot/types';
|
import type { Bytes, Enum, Struct } from '@polkadot/types';
|
||||||
import type { Balance, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name AccountStatus */
|
/** @name AccountStatus */
|
||||||
export interface AccountStatus extends Struct {
|
export interface AccountStatus extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, Vec, u16 } from '@polkadot/types';
|
import type { Struct, Vec, u16 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ActiveRecovery */
|
/** @name ActiveRecovery */
|
||||||
export interface ActiveRecovery extends Struct {
|
export interface ActiveRecovery extends Struct {
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Compact, DoNotConstruct, Enum, GenericAccountId, GenericAccountIndex, GenericBlock, GenericCall, GenericConsensusEngineId, GenericEthereumAccountId, GenericLookupSource, GenericMultiAddress, Int, Null, Option, StorageKey, Struct, U8aFixed, UInt, Vec, u16, u32, u64, u8 } from '@polkadot/types';
|
import type { Bytes, Compact, DoNotConstruct, Enum, GenericAccountId, GenericAccountIndex, GenericBlock, GenericCall, GenericConsensusEngineId, GenericEthereumAccountId, GenericLookupSource, GenericMultiAddress, Int, Null, Option, StorageKey, Struct, U8aFixed, UInt, Vec, u16, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||||
import type { SystemOrigin } from '@polkadot/types/interfaces/system';
|
import type { SystemOrigin } from '@polkadot/types/interfaces/system';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AccountId */
|
/** @name AccountId */
|
||||||
export interface AccountId extends AccountId32 {}
|
export interface AccountId extends AccountId32 {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Option, Struct, u32, u8 } from '@polkadot/types';
|
import type { Bytes, Option, Struct, u32, u8 } from '@polkadot/types';
|
||||||
import type { BlockNumber, Call, PalletsOrigin } from '@polkadot/types/interfaces/runtime';
|
import type { BlockNumber, Call, PalletsOrigin } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name Period */
|
/** @name Period */
|
||||||
export interface Period extends ITuple<[BlockNumber, u32]> {}
|
export interface Period extends ITuple<[BlockNumber, u32]> {}
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Struct, U8aFixed, Vec, u32 } from '@polkadot/types';
|
import type { Bytes, Struct, U8aFixed, Vec, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { Exposure } from '@polkadot/types/interfaces/staking';
|
import type { Exposure } from '@polkadot/types/interfaces/staking';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name BeefyKey */
|
/** @name BeefyKey */
|
||||||
export interface BeefyKey extends U8aFixed {}
|
export interface BeefyKey extends U8aFixed {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Struct, u32 } from '@polkadot/types';
|
import type { Enum, Struct, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name Bid */
|
/** @name Bid */
|
||||||
export interface Bid extends Struct {
|
export interface Bid extends Struct {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BTreeMap, Compact, Enum, Option, Struct, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
|
import type { BTreeMap, Compact, Enum, Option, Struct, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name ActiveEraInfo */
|
/** @name ActiveEraInfo */
|
||||||
export interface ActiveEraInfo extends Struct {
|
export interface ActiveEraInfo extends Struct {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Enum, HashMap, Option, StorageKey, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
import type { Bytes, Enum, HashMap, Option, StorageKey, Struct, Text, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
|
||||||
import type { Hash, StorageData } from '@polkadot/types/interfaces/runtime';
|
import type { Hash, StorageData } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name ApiId */
|
/** @name ApiId */
|
||||||
export interface ApiId extends U8aFixed {}
|
export interface ApiId extends U8aFixed {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, bool, u8 } from '@polkadot/types';
|
import type { Struct, bool, u8 } from '@polkadot/types';
|
||||||
import type { Balance, Perbill } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name WeightToFeeCoefficient */
|
/** @name WeightToFeeCoefficient */
|
||||||
export interface WeightToFeeCoefficient extends Struct {
|
export interface WeightToFeeCoefficient extends Struct {
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Compact, Enum, GenericChainProperties, GenericEvent, HashMap, Option, Result, Struct, Text, U8aFixed, Vec, bool, i32, u32, u64, u8 } from '@polkadot/types';
|
import type { Bytes, Compact, Enum, GenericChainProperties, GenericEvent, HashMap, Option, Result, Struct, Text, U8aFixed, Vec, bool, i32, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AccountData } from '@polkadot/types/interfaces/balances';
|
import type { AccountData } from '@polkadot/types/interfaces/balances';
|
||||||
import type { AccountId, BlockNumber, Digest, Hash, Index, Pays, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber, Digest, Hash, Index, Pays, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AccountInfo */
|
/** @name AccountInfo */
|
||||||
export interface AccountInfo extends AccountInfoWithTripleRefCount {}
|
export interface AccountInfo extends AccountInfoWithTripleRefCount {}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types';
|
import type { Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name Bounty */
|
/** @name Bounty */
|
||||||
export interface Bounty extends Struct {
|
export interface Bounty extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Compact, Option, Struct, bool, u32 } from '@polkadot/types';
|
import type { Bytes, Compact, Option, Struct, bool, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name ClassDetails */
|
/** @name ClassDetails */
|
||||||
export interface ClassDetails extends Struct {
|
export interface ClassDetails extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct, Vec, u32 } from '@polkadot/types';
|
import type { Struct, Vec, u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name Multisig */
|
/** @name Multisig */
|
||||||
export interface Multisig extends Struct {
|
export interface Multisig extends Struct {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Struct } from '@polkadot/types';
|
import type { Struct } from '@polkadot/types';
|
||||||
import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name VestingInfo */
|
/** @name VestingInfo */
|
||||||
export interface VestingInfo extends Struct {
|
export interface VestingInfo extends Struct {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
import type { Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
/** @name AssetInstance */
|
/** @name AssetInstance */
|
||||||
export interface AssetInstance extends AssetInstanceV2 {}
|
export interface AssetInstance extends AssetInstanceV2 {}
|
||||||
|
|||||||
Reference in New Issue
Block a user