From fedb0a3f0974eb0f0d77115a8d9526beecde5b30 Mon Sep 17 00:00:00 2001 From: Jaco Date: Mon, 29 Nov 2021 06:46:34 +0100 Subject: [PATCH] Re-order augmentation imports (#4266) --- CHANGELOG.md | 1 + packages/typegen/src/templates/lookup/types.hbs | 4 ++-- packages/types/src/augment/lookup/types-kusama.ts | 4 ++-- packages/types/src/augment/lookup/types-polkadot.ts | 4 ++-- packages/types/src/augment/lookup/types-substrate.ts | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f313e5a0b..286c254fde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Changes: - Fix for HttpProvider init (RPC sections with only subscriptions) +- Re-order imports in lookup type augmentation interfaces - Bump static metadata for latest Substrate, Polkadot & Kusama diff --git a/packages/typegen/src/templates/lookup/types.hbs b/packages/typegen/src/templates/lookup/types.hbs index b7fd447cac..df1802ba7c 100644 --- a/packages/typegen/src/templates/lookup/types.hbs +++ b/packages/typegen/src/templates/lookup/types.hbs @@ -1,9 +1,9 @@ {{> header }} -{{{ imports }}} - declare module '@polkadot/types/lookup' { +{{{ imports }}} + {{#each items}} {{{this}}} diff --git a/packages/types/src/augment/lookup/types-kusama.ts b/packages/types/src/augment/lookup/types-kusama.ts index 2efffe34ee..6bb6782c16 100644 --- a/packages/types/src/augment/lookup/types-kusama.ts +++ b/packages/types/src/augment/lookup/types-kusama.ts @@ -1,12 +1,12 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ +declare module '@polkadot/types/lookup' { + import type { Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime'; import type { ITuple } from '@polkadot/types/types'; -declare module '@polkadot/types/lookup' { - /** @name KusamaRuntimeProxyType (71) */ export interface KusamaRuntimeProxyType extends Enum { readonly isAny: boolean; diff --git a/packages/types/src/augment/lookup/types-polkadot.ts b/packages/types/src/augment/lookup/types-polkadot.ts index b7cc83e12e..bd62a5efde 100644 --- a/packages/types/src/augment/lookup/types-polkadot.ts +++ b/packages/types/src/augment/lookup/types-polkadot.ts @@ -1,13 +1,13 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ +declare module '@polkadot/types/lookup' { + import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types'; import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime'; import type { ITuple } from '@polkadot/types/types'; -declare module '@polkadot/types/lookup' { - /** @name PolkadotRuntimeCommonClaimsPalletEvent (62) */ export interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum { readonly isClaimed: boolean; diff --git a/packages/types/src/augment/lookup/types-substrate.ts b/packages/types/src/augment/lookup/types-substrate.ts index 171490c128..6bc5c3333f 100644 --- a/packages/types/src/augment/lookup/types-substrate.ts +++ b/packages/types/src/augment/lookup/types-substrate.ts @@ -1,14 +1,14 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ +declare module '@polkadot/types/lookup' { + import type { BTreeMap, Bytes, Compact, Data, Enum, Null, Option, Result, Set, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types'; import type { Vote } from '@polkadot/types/interfaces/elections'; import type { AccountId32, Call, H256, MultiAddress, PerU16, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; import type { Event } from '@polkadot/types/interfaces/system'; import type { ITuple } from '@polkadot/types/types'; -declare module '@polkadot/types/lookup' { - /** @name FrameSystemAccountInfo (3) */ export interface FrameSystemAccountInfo extends Struct { readonly nonce: u32;