diff --git a/packages/typegen/src/generate/consts.ts b/packages/typegen/src/generate/consts.ts index 419425fd08..beedc5b716 100644 --- a/packages/typegen/src/generate/consts.ts +++ b/packages/typegen/src/generate/consts.ts @@ -14,8 +14,7 @@ import { stringCamelCase } from '@polkadot/util'; import { compareName, createImports, formatType, initMeta, readTemplate, setImports, writeFile } from '../util'; -const template = readTemplate('consts'); -const generateForMetaTemplate = Handlebars.compile(template); +const generateForMetaTemplate = Handlebars.compile(readTemplate('consts')); /** @internal */ function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void { diff --git a/packages/typegen/src/generate/errors.ts b/packages/typegen/src/generate/errors.ts index c88c5066b0..f5e3c5b9fb 100644 --- a/packages/typegen/src/generate/errors.ts +++ b/packages/typegen/src/generate/errors.ts @@ -11,8 +11,7 @@ import { stringCamelCase } from '@polkadot/util'; import { compareName, createImports, initMeta, readTemplate, writeFile } from '../util'; -const template = readTemplate('errors'); -const generateForMetaTemplate = Handlebars.compile(template); +const generateForMetaTemplate = Handlebars.compile(readTemplate('errors')); /** @internal */ function generateForMeta (meta: Metadata, dest: string, isStrict: boolean): void { diff --git a/packages/typegen/src/generate/events.ts b/packages/typegen/src/generate/events.ts index 0d91d2ea9d..9792fc105a 100644 --- a/packages/typegen/src/generate/events.ts +++ b/packages/typegen/src/generate/events.ts @@ -14,8 +14,7 @@ import { stringCamelCase } from '@polkadot/util'; import { compareName, createImports, formatType, initMeta, readTemplate, setImports, writeFile } from '../util'; -const template = readTemplate('events'); -const generateForMetaTemplate = Handlebars.compile(template); +const generateForMetaTemplate = Handlebars.compile(readTemplate('events')); /** @internal */ function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void { diff --git a/packages/typegen/src/generate/interfaceRegistry.ts b/packages/typegen/src/generate/interfaceRegistry.ts index ad642decd9..b08b1e4fff 100644 --- a/packages/typegen/src/generate/interfaceRegistry.ts +++ b/packages/typegen/src/generate/interfaceRegistry.ts @@ -17,8 +17,7 @@ const primitiveClasses = { Raw }; -const template = readTemplate('interfaceRegistry'); -const generateInterfaceTypesTemplate = Handlebars.compile(template); +const generateInterfaceTypesTemplate = Handlebars.compile(readTemplate('interfaceRegistry')); /** @internal */ export function generateInterfaceTypes (importDefinitions: { [importPath: string]: Record }, dest: string): void { diff --git a/packages/typegen/src/generate/query.ts b/packages/typegen/src/generate/query.ts index fda1f51422..55e8d55017 100644 --- a/packages/typegen/src/generate/query.ts +++ b/packages/typegen/src/generate/query.ts @@ -17,6 +17,8 @@ import { stringCamelCase } from '@polkadot/util'; import { compareName, createImports, formatType, getSimilarTypes, initMeta, readTemplate, setImports, TypeImports, writeFile } from '../util'; import { ModuleTypes } from '../util/imports'; +const generateForMetaTemplate = Handlebars.compile(readTemplate('query')); + // From a storage entry metadata, we return [args, returnType] /** @internal */ function entrySignature (lookup: PortableRegistry, allDefs: Record, registry: Registry, storageEntry: StorageEntryMetadataLatest, imports: TypeImports): [boolean, string, string, string] { @@ -63,9 +65,6 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record { diff --git a/packages/typegen/src/generate/rpc.ts b/packages/typegen/src/generate/rpc.ts index 496f0a2fdb..7629f297e0 100644 --- a/packages/typegen/src/generate/rpc.ts +++ b/packages/typegen/src/generate/rpc.ts @@ -24,10 +24,9 @@ interface ModuleDef { name: string; } -const StorageKeyTye = 'StorageKey | string | Uint8Array | any'; +const StorageKeyType = 'StorageKey | string | Uint8Array | any'; -const template = readTemplate('rpc'); -const generateRpcTypesTemplate = Handlebars.compile(template); +const generateRpcTypesTemplate = Handlebars.compile(readTemplate('rpc')); /** @internal */ export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Record, dest: string, extraTypes: ExtraTypes = {}): void { @@ -62,19 +61,19 @@ export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Rec if (methodName === 'getStorage') { generic = 'T = Codec'; - args = [`key: ${StorageKeyTye}, block?: Hash | Uint8Array | string`]; + args = [`key: ${StorageKeyType}, block?: Hash | Uint8Array | string`]; type = 'T'; } else if (methodName === 'queryStorage') { generic = 'T = Codec[]'; - args = [`keys: Vec | (${StorageKeyTye})[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string`]; + args = [`keys: Vec | (${StorageKeyType})[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string`]; type = '[Hash, T][]'; } else if (methodName === 'queryStorageAt') { generic = 'T = Codec[]'; - args = [`keys: Vec | (${StorageKeyTye})[], at?: Hash | Uint8Array | string`]; + args = [`keys: Vec | (${StorageKeyType})[], at?: Hash | Uint8Array | string`]; type = 'T'; } else if (methodName === 'subscribeStorage') { generic = 'T = Codec[]'; - args = [`keys?: Vec | (${StorageKeyTye})[]`]; + args = [`keys?: Vec | (${StorageKeyType})[]`]; type = 'T'; } } diff --git a/packages/typegen/src/generate/tsDef.ts b/packages/typegen/src/generate/tsDef.ts index c98ced3a23..f0d8cda1de 100644 --- a/packages/typegen/src/generate/tsDef.ts +++ b/packages/typegen/src/generate/tsDef.ts @@ -19,6 +19,10 @@ interface Imports extends TypeImports { 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 : ;` getter /** @internal */ export function createGetter (definitions: Record, name = '', type: string, imports: TypeImports): string { @@ -248,15 +252,6 @@ function generateInterfaces (registry: Registry, definitions: Record }, defName: string, { types }: { types: Record }, outputDir: string): void { const imports = { ...createImports(importDefinitions, { types }), interfaces: [] } as Imports; diff --git a/packages/typegen/src/generate/tx.ts b/packages/typegen/src/generate/tx.ts index e9482b4285..e9a83ec628 100644 --- a/packages/typegen/src/generate/tx.ts +++ b/packages/typegen/src/generate/tx.ts @@ -20,15 +20,14 @@ const MAPPED_NAMES: Record = { new: 'updated' }; +const generateForMetaTemplate = Handlebars.compile(readTemplate('tx')); + function mapName (_name: Text): string { const name = stringCamelCase(_name); return MAPPED_NAMES[name] || name; } -const template = readTemplate('tx'); -const generateForMetaTemplate = Handlebars.compile(template); - /** @internal */ function generateForMeta (registry: Registry, meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void { writeFile(dest, (): string => { diff --git a/packages/typegen/src/templates/consts.hbs b/packages/typegen/src/templates/consts.hbs index baee185bd7..9fd15ef89f 100644 --- a/packages/typegen/src/templates/consts.hbs +++ b/packages/typegen/src/templates/consts.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/api/types/consts' { - {{{ imports }}} + {{{ importsPackage }}} export interface AugmentedConsts { {{#each modules}} diff --git a/packages/typegen/src/templates/errors.hbs b/packages/typegen/src/templates/errors.hbs index c7cd082a5a..40ff1c90a2 100644 --- a/packages/typegen/src/templates/errors.hbs +++ b/packages/typegen/src/templates/errors.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/api/types/errors' { - {{{ imports }}} + {{{ importsPackage }}} export interface AugmentedErrors { {{#each modules}} diff --git a/packages/typegen/src/templates/events.hbs b/packages/typegen/src/templates/events.hbs index a3f3914558..68b009b272 100644 --- a/packages/typegen/src/templates/events.hbs +++ b/packages/typegen/src/templates/events.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/api/types/events' { - {{{ imports }}} + {{{ importsPackage }}} export interface AugmentedEvents { {{#each modules}} diff --git a/packages/typegen/src/templates/interfaceRegistry.hbs b/packages/typegen/src/templates/interfaceRegistry.hbs index 7184c7062e..34e12f80dd 100644 --- a/packages/typegen/src/templates/interfaceRegistry.hbs +++ b/packages/typegen/src/templates/interfaceRegistry.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/types/types/registry' { - {{{ imports }}} + {{{ importsPackage }}} export interface InterfaceTypes { {{#each items}} diff --git a/packages/typegen/src/templates/lookup/types.hbs b/packages/typegen/src/templates/lookup/types.hbs index aed522d1ae..8fa1bc3db8 100644 --- a/packages/typegen/src/templates/lookup/types.hbs +++ b/packages/typegen/src/templates/lookup/types.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/types/lookup' { - {{{ imports }}} + {{{ importsPackage }}} {{#each items}} {{{this}}} diff --git a/packages/typegen/src/templates/query.hbs b/packages/typegen/src/templates/query.hbs index d6ba70d2d3..66a3038061 100644 --- a/packages/typegen/src/templates/query.hbs +++ b/packages/typegen/src/templates/query.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/api/types/storage' { - {{{ imports }}} + {{{ importsPackage }}} export interface AugmentedQueries { {{#each modules}} diff --git a/packages/typegen/src/templates/rpc.hbs b/packages/typegen/src/templates/rpc.hbs index 69c7594b64..32ea9fb837 100644 --- a/packages/typegen/src/templates/rpc.hbs +++ b/packages/typegen/src/templates/rpc.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/rpc-core/types.jsonrpc' { - {{{ imports }}} + {{{ importsPackage }}} export interface RpcInterface { {{#each modules}} diff --git a/packages/typegen/src/templates/tsDef/moduleTypes.hbs b/packages/typegen/src/templates/tsDef/moduleTypes.hbs index b2b5816ff6..ddcb15c741 100644 --- a/packages/typegen/src/templates/tsDef/moduleTypes.hbs +++ b/packages/typegen/src/templates/tsDef/moduleTypes.hbs @@ -1,6 +1,6 @@ {{> header }} -{{{ imports }}} +{{{ importsAll }}} {{#each items}} {{{this}}} diff --git a/packages/typegen/src/templates/tx.hbs b/packages/typegen/src/templates/tx.hbs index c0d597b0d3..5df57fc784 100644 --- a/packages/typegen/src/templates/tx.hbs +++ b/packages/typegen/src/templates/tx.hbs @@ -1,7 +1,9 @@ {{> header }} +{{{ importsRelative }}} + declare module '@polkadot/api/types/submittable' { - {{{ imports }}} + {{{ importsPackage }}} export interface AugmentedSubmittables { {{#each modules}} diff --git a/packages/typegen/src/util/formatting.ts b/packages/typegen/src/util/formatting.ts index d4af544e4b..8c6ef2003e 100644 --- a/packages/typegen/src/util/formatting.ts +++ b/packages/typegen/src/util/formatting.ts @@ -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`; +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({ header: Handlebars.compile(readTemplate('header')) }); Handlebars.registerHelper({ - imports () { - const { imports, types } = this as unknown as This; - const defs = [ - { - 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 - ]; - - 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; - }, ''); + importsAll () { + return extractImports(this as unknown as This) + .join('\n'); + }, + importsPackage () { + return extractImports(this as unknown as This) + .filter((l) => !l.includes("from '.")) + .join('\n '); + }, + importsRelative () { + return extractImports(this as unknown as This) + .filter((l) => l.includes("from '.")) + .join('\n'); }, trim (options: { fn: (self: unknown) => string }) { return options.fn(this).trim(); diff --git a/packages/types/src/interfaces/assets/types.ts b/packages/types/src/interfaces/assets/types.ts index 24dac42ec3..106bdac0f1 100644 --- a/packages/types/src/interfaces/assets/types.ts +++ b/packages/types/src/interfaces/assets/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface AssetApproval extends Struct { diff --git a/packages/types/src/interfaces/attestations/types.ts b/packages/types/src/interfaces/attestations/types.ts index 4b30034404..a849c1dee4 100644 --- a/packages/types/src/interfaces/attestations/types.ts +++ b/packages/types/src/interfaces/attestations/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Struct, Vec } from '@polkadot/types'; - import type { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains'; - import type { AccountId, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime'; - import type { SessionIndex } from '@polkadot/types/interfaces/session'; +import type { CandidateReceipt, ParaId } from '@polkadot/types/interfaces/parachains'; +import type { AccountId, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime'; +import type { SessionIndex } from '@polkadot/types/interfaces/session'; /** @name BlockAttestations */ export interface BlockAttestations extends Struct { diff --git a/packages/types/src/interfaces/author/types.ts b/packages/types/src/interfaces/author/types.ts index 4118b46bff..a009445583 100644 --- a/packages/types/src/interfaces/author/types.ts +++ b/packages/types/src/interfaces/author/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ExtrinsicOrHash extends Enum { diff --git a/packages/types/src/interfaces/authorship/types.ts b/packages/types/src/interfaces/authorship/types.ts index 820ccf3e8a..b40ae8e001 100644 --- a/packages/types/src/interfaces/authorship/types.ts +++ b/packages/types/src/interfaces/authorship/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Option } from '@polkadot/types'; - import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name UncleEntryItem */ export interface UncleEntryItem extends Enum { diff --git a/packages/types/src/interfaces/babe/types.ts b/packages/types/src/interfaces/babe/types.ts index b8998e625b..19ccce7bfe 100644 --- a/packages/types/src/interfaces/babe/types.ts +++ b/packages/types/src/interfaces/babe/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Enum, Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types'; - import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; - import type { Hash, Header } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { Hash, Header } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name AllowedSlots */ export interface AllowedSlots extends Enum { diff --git a/packages/types/src/interfaces/balances/types.ts b/packages/types/src/interfaces/balances/types.ts index a9d0e0a268..cb249e37e5 100644 --- a/packages/types/src/interfaces/balances/types.ts +++ b/packages/types/src/interfaces/balances/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface AccountData extends Struct { diff --git a/packages/types/src/interfaces/beefy/types.ts b/packages/types/src/interfaces/beefy/types.ts index 6572bbae36..950db0a8f0 100644 --- a/packages/types/src/interfaces/beefy/types.ts +++ b/packages/types/src/interfaces/beefy/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Option, Struct, U8aFixed, Vec, u32, u64 } from '@polkadot/types'; - import type { EcdsaSignature } from '@polkadot/types/interfaces/extrinsics'; - import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime'; +import type { EcdsaSignature } from '@polkadot/types/interfaces/extrinsics'; +import type { BlockNumber, H256 } from '@polkadot/types/interfaces/runtime'; /** @name BeefyCommitment */ export interface BeefyCommitment extends Struct { diff --git a/packages/types/src/interfaces/bridges/types.ts b/packages/types/src/interfaces/bridges/types.ts index 709ee3df50..d5ba774d86 100644 --- a/packages/types/src/interfaces/bridges/types.ts +++ b/packages/types/src/interfaces/bridges/types.ts @@ -2,11 +2,11 @@ /* eslint-disable */ 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 { MultiSignature } from '@polkadot/types/interfaces/extrinsics'; - 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 { ITuple } from '@polkadot/types/types'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics'; +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 { ITuple } from '@polkadot/types/types'; /** @name BridgedBlockHash */ export interface BridgedBlockHash extends H256 {} diff --git a/packages/types/src/interfaces/collective/types.ts b/packages/types/src/interfaces/collective/types.ts index a59808fe50..f4fb732e56 100644 --- a/packages/types/src/interfaces/collective/types.ts +++ b/packages/types/src/interfaces/collective/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Struct, Vec, u32 } from '@polkadot/types'; - import type { AccountId, BlockNumber } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, BlockNumber } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name CollectiveOrigin */ export interface CollectiveOrigin extends Enum { diff --git a/packages/types/src/interfaces/consensus/types.ts b/packages/types/src/interfaces/consensus/types.ts index fe966a5b3c..ffee2d2c5f 100644 --- a/packages/types/src/interfaces/consensus/types.ts +++ b/packages/types/src/interfaces/consensus/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import type { U8aFixed } from '@polkadot/types'; - import type { AccountId } from '@polkadot/types/interfaces/runtime'; +import type { AccountId } from '@polkadot/types/interfaces/runtime'; /** @name AuthorityId */ export interface AuthorityId extends AccountId {} diff --git a/packages/types/src/interfaces/contracts/types.ts b/packages/types/src/interfaces/contracts/types.ts index 8a784a8da9..f9e7c668b7 100644 --- a/packages/types/src/interfaces/contracts/types.ts +++ b/packages/types/src/interfaces/contracts/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface AliveContractInfo extends Struct { diff --git a/packages/types/src/interfaces/contractsAbi/types.ts b/packages/types/src/interfaces/contractsAbi/types.ts index adaa3ab54f..0bb8f8cfa4 100644 --- a/packages/types/src/interfaces/contractsAbi/types.ts +++ b/packages/types/src/interfaces/contractsAbi/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ 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 { Si0Type, SiLookupTypeId, SiPath } from '@polkadot/types/interfaces/scaleInfo'; - import type { ITuple } from '@polkadot/types/types'; +import type { PortableType } from '@polkadot/types/interfaces/metadata'; +import type { Si0Type, SiLookupTypeId, SiPath } from '@polkadot/types/interfaces/scaleInfo'; +import type { ITuple } from '@polkadot/types/types'; /** @name ContractConstructorSpecLatest */ export interface ContractConstructorSpecLatest extends ContractConstructorSpecV2 {} diff --git a/packages/types/src/interfaces/crowdloan/types.ts b/packages/types/src/interfaces/crowdloan/types.ts index 84e97d2a89..f366281697 100644 --- a/packages/types/src/interfaces/crowdloan/types.ts +++ b/packages/types/src/interfaces/crowdloan/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Option, Struct, u32 } from '@polkadot/types'; - import type { LeasePeriod } from '@polkadot/types/interfaces/parachains'; - import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime'; +import type { LeasePeriod } from '@polkadot/types/interfaces/parachains'; +import type { AccountId, Balance, BlockNumber, MultiSigner } from '@polkadot/types/interfaces/runtime'; /** @name FundIndex */ export interface FundIndex extends u32 {} diff --git a/packages/types/src/interfaces/cumulus/types.ts b/packages/types/src/interfaces/cumulus/types.ts index 175ba99ced..ec1c6cd87f 100644 --- a/packages/types/src/interfaces/cumulus/types.ts +++ b/packages/types/src/interfaces/cumulus/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ConfigData extends Struct { diff --git a/packages/types/src/interfaces/democracy/types.ts b/packages/types/src/interfaces/democracy/types.ts index 996f4a4811..188a8d0a9a 100644 --- a/packages/types/src/interfaces/democracy/types.ts +++ b/packages/types/src/interfaces/democracy/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types'; - import type { Vote, VoteThreshold } from '@polkadot/types/interfaces/elections'; - import type { AccountId, Balance, BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { Vote, VoteThreshold } from '@polkadot/types/interfaces/elections'; +import type { AccountId, Balance, BlockNumber, Call, Hash } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name AccountVote */ export interface AccountVote extends Enum { diff --git a/packages/types/src/interfaces/elections/types.ts b/packages/types/src/interfaces/elections/types.ts index d5766f111d..e789043f0e 100644 --- a/packages/types/src/interfaces/elections/types.ts +++ b/packages/types/src/interfaces/elections/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ApprovalFlag extends u32 {} diff --git a/packages/types/src/interfaces/engine/types.ts b/packages/types/src/interfaces/engine/types.ts index b6896fd3ca..fd93ca49d0 100644 --- a/packages/types/src/interfaces/engine/types.ts +++ b/packages/types/src/interfaces/engine/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface CreatedBlock extends Struct { diff --git a/packages/types/src/interfaces/eth/types.ts b/packages/types/src/interfaces/eth/types.ts index b9f87ec484..f8b9bec7d8 100644 --- a/packages/types/src/interfaces/eth/types.ts +++ b/packages/types/src/interfaces/eth/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface BlockV0 extends Struct { diff --git a/packages/types/src/interfaces/evm/types.ts b/packages/types/src/interfaces/evm/types.ts index af7c18971d..6ca4ef9603 100644 --- a/packages/types/src/interfaces/evm/types.ts +++ b/packages/types/src/interfaces/evm/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface EvmAccount extends Struct { diff --git a/packages/types/src/interfaces/extrinsics/types.ts b/packages/types/src/interfaces/extrinsics/types.ts index ac0983eb83..442537abcd 100644 --- a/packages/types/src/interfaces/extrinsics/types.ts +++ b/packages/types/src/interfaces/extrinsics/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface AnySignature extends H512 {} diff --git a/packages/types/src/interfaces/genericAsset/types.ts b/packages/types/src/interfaces/genericAsset/types.ts index 0cd8b35285..8296ad51a0 100644 --- a/packages/types/src/interfaces/genericAsset/types.ts +++ b/packages/types/src/interfaces/genericAsset/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface AssetOptions extends Struct { diff --git a/packages/types/src/interfaces/gilt/types.ts b/packages/types/src/interfaces/gilt/types.ts index 3e46d8897a..68e230263d 100644 --- a/packages/types/src/interfaces/gilt/types.ts +++ b/packages/types/src/interfaces/gilt/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ActiveGilt extends Struct { diff --git a/packages/types/src/interfaces/grandpa/types.ts b/packages/types/src/interfaces/grandpa/types.ts index 449536ebc8..6440c84989 100644 --- a/packages/types/src/interfaces/grandpa/types.ts +++ b/packages/types/src/interfaces/grandpa/types.ts @@ -2,12 +2,12 @@ /* eslint-disable */ import type { BTreeSet, Bytes, Enum, Option, Struct, U64, Vec, u32, u64 } from '@polkadot/types'; - import type { BlockHash } from '@polkadot/types/interfaces/chain'; - import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; - import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline'; - import type { BlockNumber, Hash, Header } from '@polkadot/types/interfaces/runtime'; - import type { MembershipProof } from '@polkadot/types/interfaces/session'; - import type { ITuple } from '@polkadot/types/types'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline'; +import type { BlockNumber, Hash, Header } from '@polkadot/types/interfaces/runtime'; +import type { MembershipProof } from '@polkadot/types/interfaces/session'; +import type { ITuple } from '@polkadot/types/types'; /** @name AuthorityIndex */ export interface AuthorityIndex extends u64 {} diff --git a/packages/types/src/interfaces/identity/types.ts b/packages/types/src/interfaces/identity/types.ts index e83ba6a3fd..df8c1cd039 100644 --- a/packages/types/src/interfaces/identity/types.ts +++ b/packages/types/src/interfaces/identity/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Data, Enum, Option, Set, Struct, Vec, u32 } from '@polkadot/types'; - import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name IdentityFields */ export interface IdentityFields extends Set { diff --git a/packages/types/src/interfaces/imOnline/types.ts b/packages/types/src/interfaces/imOnline/types.ts index c6df02f172..c1dffb58b2 100644 --- a/packages/types/src/interfaces/imOnline/types.ts +++ b/packages/types/src/interfaces/imOnline/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Struct, Vec, u32 } from '@polkadot/types'; - import type { Signature } from '@polkadot/types/interfaces/extrinsics'; - import type { BlockNumber } from '@polkadot/types/interfaces/runtime'; - import type { SessionIndex } from '@polkadot/types/interfaces/session'; +import type { Signature } from '@polkadot/types/interfaces/extrinsics'; +import type { BlockNumber } from '@polkadot/types/interfaces/runtime'; +import type { SessionIndex } from '@polkadot/types/interfaces/session'; /** @name AuthIndex */ export interface AuthIndex extends u32 {} diff --git a/packages/types/src/interfaces/lottery/types.ts b/packages/types/src/interfaces/lottery/types.ts index 5078f6fcdd..853d16f16d 100644 --- a/packages/types/src/interfaces/lottery/types.ts +++ b/packages/types/src/interfaces/lottery/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Struct, bool, u8 } from '@polkadot/types'; - import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name CallIndex */ export interface CallIndex extends ITuple<[u8, u8]> {} diff --git a/packages/types/src/interfaces/metadata/types.ts b/packages/types/src/interfaces/metadata/types.ts index 64b99da9b8..0fd0776199 100644 --- a/packages/types/src/interfaces/metadata/types.ts +++ b/packages/types/src/interfaces/metadata/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ErrorMetadataLatest extends ErrorMetadataV14 {} diff --git a/packages/types/src/interfaces/mmr/types.ts b/packages/types/src/interfaces/mmr/types.ts index 9f619acd3c..64a395477a 100644 --- a/packages/types/src/interfaces/mmr/types.ts +++ b/packages/types/src/interfaces/mmr/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface MmrLeafProof extends Struct { diff --git a/packages/types/src/interfaces/offences/types.ts b/packages/types/src/interfaces/offences/types.ts index 61dc391bac..dd04c26db5 100644 --- a/packages/types/src/interfaces/offences/types.ts +++ b/packages/types/src/interfaces/offences/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Struct, U8aFixed, Vec } from '@polkadot/types'; - import type { AccountId, Hash, Perbill } from '@polkadot/types/interfaces/runtime'; - import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, Hash, Perbill } from '@polkadot/types/interfaces/runtime'; +import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session'; +import type { ITuple } from '@polkadot/types/types'; /** @name DeferredOffenceOf */ export interface DeferredOffenceOf extends ITuple<[Vec, Vec, SessionIndex]> {} diff --git a/packages/types/src/interfaces/parachains/types.ts b/packages/types/src/interfaces/parachains/types.ts index f83c4c16d8..ae90848e89 100644 --- a/packages/types/src/interfaces/parachains/types.ts +++ b/packages/types/src/interfaces/parachains/types.ts @@ -2,10 +2,10 @@ /* eslint-disable */ 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 { 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 { ITuple } from '@polkadot/types/types'; +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 { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session'; +import type { ITuple } from '@polkadot/types/types'; /** @name AbridgedCandidateReceipt */ export interface AbridgedCandidateReceipt extends Struct { diff --git a/packages/types/src/interfaces/payment/types.ts b/packages/types/src/interfaces/payment/types.ts index b4bf977443..2bf63be570 100644 --- a/packages/types/src/interfaces/payment/types.ts +++ b/packages/types/src/interfaces/payment/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Option, Struct } from '@polkadot/types'; - import type { Balance, Weight } from '@polkadot/types/interfaces/runtime'; - import type { DispatchClass } from '@polkadot/types/interfaces/system'; +import type { Balance, Weight } from '@polkadot/types/interfaces/runtime'; +import type { DispatchClass } from '@polkadot/types/interfaces/system'; /** @name FeeDetails */ export interface FeeDetails extends Struct { diff --git a/packages/types/src/interfaces/proxy/types.ts b/packages/types/src/interfaces/proxy/types.ts index 2f123a2b87..7bdc4a8742 100644 --- a/packages/types/src/interfaces/proxy/types.ts +++ b/packages/types/src/interfaces/proxy/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ProxyAnnouncement extends Struct { diff --git a/packages/types/src/interfaces/purchase/types.ts b/packages/types/src/interfaces/purchase/types.ts index 58874fc7c8..2da53f2183 100644 --- a/packages/types/src/interfaces/purchase/types.ts +++ b/packages/types/src/interfaces/purchase/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface AccountStatus extends Struct { diff --git a/packages/types/src/interfaces/recovery/types.ts b/packages/types/src/interfaces/recovery/types.ts index 8d358a4dbc..8cbbb6f851 100644 --- a/packages/types/src/interfaces/recovery/types.ts +++ b/packages/types/src/interfaces/recovery/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ActiveRecovery extends Struct { diff --git a/packages/types/src/interfaces/runtime/types.ts b/packages/types/src/interfaces/runtime/types.ts index fa8b020dbc..f1f4ef76ee 100644 --- a/packages/types/src/interfaces/runtime/types.ts +++ b/packages/types/src/interfaces/runtime/types.ts @@ -2,10 +2,10 @@ /* 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 { AuthorityId } from '@polkadot/types/interfaces/consensus'; - import type { Signature } from '@polkadot/types/interfaces/extrinsics'; - import type { SystemOrigin } from '@polkadot/types/interfaces/system'; - import type { ITuple } from '@polkadot/types/types'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { Signature } from '@polkadot/types/interfaces/extrinsics'; +import type { SystemOrigin } from '@polkadot/types/interfaces/system'; +import type { ITuple } from '@polkadot/types/types'; /** @name AccountId */ export interface AccountId extends AccountId32 {} diff --git a/packages/types/src/interfaces/scheduler/types.ts b/packages/types/src/interfaces/scheduler/types.ts index 7ee9447cd1..2744b055af 100644 --- a/packages/types/src/interfaces/scheduler/types.ts +++ b/packages/types/src/interfaces/scheduler/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Bytes, Option, Struct, u32, u8 } from '@polkadot/types'; - import type { BlockNumber, Call, PalletsOrigin } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { BlockNumber, Call, PalletsOrigin } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name Period */ export interface Period extends ITuple<[BlockNumber, u32]> {} diff --git a/packages/types/src/interfaces/session/types.ts b/packages/types/src/interfaces/session/types.ts index b3a6d71c12..d4ae8f26de 100644 --- a/packages/types/src/interfaces/session/types.ts +++ b/packages/types/src/interfaces/session/types.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { Bytes, Struct, U8aFixed, Vec, u32 } from '@polkadot/types'; - import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime'; - import type { Exposure } from '@polkadot/types/interfaces/staking'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, ValidatorId } from '@polkadot/types/interfaces/runtime'; +import type { Exposure } from '@polkadot/types/interfaces/staking'; +import type { ITuple } from '@polkadot/types/types'; /** @name BeefyKey */ export interface BeefyKey extends U8aFixed {} diff --git a/packages/types/src/interfaces/society/types.ts b/packages/types/src/interfaces/society/types.ts index 6aa0e010d0..9be8c633f9 100644 --- a/packages/types/src/interfaces/society/types.ts +++ b/packages/types/src/interfaces/society/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Struct, u32 } from '@polkadot/types'; - import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name Bid */ export interface Bid extends Struct { diff --git a/packages/types/src/interfaces/staking/types.ts b/packages/types/src/interfaces/staking/types.ts index 9f270e4a0b..7d161f69d8 100644 --- a/packages/types/src/interfaces/staking/types.ts +++ b/packages/types/src/interfaces/staking/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ 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 { ITuple } from '@polkadot/types/types'; +import type { AccountId, Balance, BlockNumber, Moment, PerU16, Perbill } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name ActiveEraInfo */ export interface ActiveEraInfo extends Struct { diff --git a/packages/types/src/interfaces/state/types.ts b/packages/types/src/interfaces/state/types.ts index 12c9d6f8e8..f19cedc5e0 100644 --- a/packages/types/src/interfaces/state/types.ts +++ b/packages/types/src/interfaces/state/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ 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 { ITuple } from '@polkadot/types/types'; +import type { Hash, StorageData } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name ApiId */ export interface ApiId extends U8aFixed {} diff --git a/packages/types/src/interfaces/support/types.ts b/packages/types/src/interfaces/support/types.ts index 64926e635b..40b7af6c4a 100644 --- a/packages/types/src/interfaces/support/types.ts +++ b/packages/types/src/interfaces/support/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface WeightToFeeCoefficient extends Struct { diff --git a/packages/types/src/interfaces/system/types.ts b/packages/types/src/interfaces/system/types.ts index a3cd4d9be4..7f29fd79f9 100644 --- a/packages/types/src/interfaces/system/types.ts +++ b/packages/types/src/interfaces/system/types.ts @@ -2,9 +2,9 @@ /* 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 { AccountData } from '@polkadot/types/interfaces/balances'; - import type { AccountId, BlockNumber, Digest, Hash, Index, Pays, Weight } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountData } from '@polkadot/types/interfaces/balances'; +import type { AccountId, BlockNumber, Digest, Hash, Index, Pays, Weight } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name AccountInfo */ export interface AccountInfo extends AccountInfoWithTripleRefCount {} diff --git a/packages/types/src/interfaces/treasury/types.ts b/packages/types/src/interfaces/treasury/types.ts index 7cb305c0b8..8d1ae01d7b 100644 --- a/packages/types/src/interfaces/treasury/types.ts +++ b/packages/types/src/interfaces/treasury/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ import type { Enum, Option, Struct, Vec, bool, u32 } from '@polkadot/types'; - import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; - import type { ITuple } from '@polkadot/types/types'; +import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name Bounty */ export interface Bounty extends Struct { diff --git a/packages/types/src/interfaces/uniques/types.ts b/packages/types/src/interfaces/uniques/types.ts index 2aabe3f651..862b5d0077 100644 --- a/packages/types/src/interfaces/uniques/types.ts +++ b/packages/types/src/interfaces/uniques/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface ClassDetails extends Struct { diff --git a/packages/types/src/interfaces/utility/types.ts b/packages/types/src/interfaces/utility/types.ts index 20e036bc37..21350f05af 100644 --- a/packages/types/src/interfaces/utility/types.ts +++ b/packages/types/src/interfaces/utility/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface Multisig extends Struct { diff --git a/packages/types/src/interfaces/vesting/types.ts b/packages/types/src/interfaces/vesting/types.ts index 090be1e5b9..9892d21ae9 100644 --- a/packages/types/src/interfaces/vesting/types.ts +++ b/packages/types/src/interfaces/vesting/types.ts @@ -2,7 +2,7 @@ /* eslint-disable */ 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 */ export interface VestingInfo extends Struct { diff --git a/packages/types/src/interfaces/xcm/types.ts b/packages/types/src/interfaces/xcm/types.ts index 44159c90d9..6a5d71a3a4 100644 --- a/packages/types/src/interfaces/xcm/types.ts +++ b/packages/types/src/interfaces/xcm/types.ts @@ -2,8 +2,8 @@ /* eslint-disable */ 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 { ITuple } from '@polkadot/types/types'; +import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/runtime'; +import type { ITuple } from '@polkadot/types/types'; /** @name AssetInstance */ export interface AssetInstance extends AssetInstanceV2 {}