From b3431ce892c5f02920947474a155c9cfce3c1b1c Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 26 Jul 2019 17:15:58 +0200 Subject: [PATCH] Don't export I/U{8|6|32|64|128|256} only lowercase (#1204) --- packages/types/src/interfaceRegistry.ts | 44 +------------------------ packages/types/src/primitive/index.ts | 24 +++++++------- 2 files changed, 13 insertions(+), 55 deletions(-) diff --git a/packages/types/src/interfaceRegistry.ts b/packages/types/src/interfaceRegistry.ts index 1d845fc0c5..9ad905afdd 100644 --- a/packages/types/src/interfaceRegistry.ts +++ b/packages/types/src/interfaceRegistry.ts @@ -1,7 +1,7 @@ // Auto-generated via `yarn build:interfaces`, do not edit import { Compact, Option, Vec } from './codec'; -import { Bytes, Data, Extrinsic, ExtrinsicEra, Fixed64, GenericAccountId, GenericAccountIndex, GenericAddress, GenericBlock, GenericConsensusEngineId, GenericDigest, GenericDigestItem, GenericEvent, GenericVote, H160, H256, H512, I128, I16, I256, I32, I64, I8, ImmortalEra, Method, Moment, MortalEra, Null, Origin, SignaturePayload, StorageHasher, StorageKey, Text, Type, U128, U16, U256, U32, U64, U8, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from './primitive'; +import { Bytes, Data, Extrinsic, ExtrinsicEra, Fixed64, GenericAccountId, GenericAccountIndex, GenericAddress, GenericBlock, GenericConsensusEngineId, GenericDigest, GenericDigestItem, GenericEvent, GenericVote, H160, H256, H512, ImmortalEra, Method, Moment, MortalEra, Null, Origin, SignaturePayload, StorageHasher, StorageKey, Text, Type, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from './primitive'; import { AccountId, AccountIdOf, AccountIndex, Address, Balance, BalanceOf, Block, BlockNumber, Consensus, ConsensusEngineId, Digest, DigestItem, Ed25519Signature, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, Perbill, Permill, Phantom, PreRuntime, Seal, SealV0, SessionKeys, Signature, SignedBlock, Sr25519Signature, StorageData, ValidatorId, Weight, WeightMultiplier } from './interfaces/runtime'; import { AuthorityId } from './interfaces/consensus'; import { Keys, SessionIndex } from './interfaces/session'; @@ -43,42 +43,24 @@ export interface InterfaceRegistry { i8: i8; 'Option': Option; 'Vec': Vec; - I8: I8; - 'Option': Option; - 'Vec': Vec; i16: i16; 'Option': Option; 'Vec': Vec; - I16: I16; - 'Option': Option; - 'Vec': Vec; i32: i32; 'Option': Option; 'Vec': Vec; - I32: I32; - 'Option': Option; - 'Vec': Vec; i64: i64; 'Option': Option; 'Vec': Vec; - I64: I64; - 'Option': Option; - 'Vec': Vec; Fixed64: Fixed64; 'Option': Option; 'Vec': Vec; i128: i128; 'Option': Option; 'Vec': Vec; - I128: I128; - 'Option': Option; - 'Vec': Vec; i256: i256; 'Option': Option; 'Vec': Vec; - I256: I256; - 'Option': Option; - 'Vec': Vec; Method: Method; 'Option': Option; 'Vec': Vec; @@ -108,50 +90,26 @@ export interface InterfaceRegistry { 'Compact': Compact; 'Option': Option; 'Vec': Vec; - U8: U8; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; u16: u16; 'Compact': Compact; 'Option': Option; 'Vec': Vec; - U16: U16; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; u32: u32; 'Compact': Compact; 'Option': Option; 'Vec': Vec; - U32: U32; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; u64: u64; 'Compact': Compact; 'Option': Option; 'Vec': Vec; - U64: U64; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; u128: u128; 'Compact': Compact; 'Option': Option; 'Vec': Vec; - U128: U128; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; u256: u256; 'Compact': Compact; 'Option': Option; 'Vec': Vec; - U256: U256; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; usize: usize; 'Compact': Compact; 'Option': Option; diff --git a/packages/types/src/primitive/index.ts b/packages/types/src/primitive/index.ts index dd655b8b6a..88fccf77b5 100644 --- a/packages/types/src/primitive/index.ts +++ b/packages/types/src/primitive/index.ts @@ -18,13 +18,13 @@ export * from './Generic'; export { default as H160 } from './H160'; export { default as H256 } from './H256'; export { default as H512 } from './H512'; -export { default as i8, default as I8 } from './I8'; -export { default as i16, default as I16 } from './I16'; -export { default as i32, default as I32 } from './I32'; -export { default as i64, default as I64 } from './I64'; +export { default as i8 } from './I8'; +export { default as i16 } from './I16'; +export { default as i32 } from './I32'; +export { default as i64 } from './I64'; export { default as Fixed64 } from './I64Fixed'; -export { default as i128, default as I128 } from './I128'; -export { default as i256, default as I256 } from './I256'; +export { default as i128 } from './I128'; +export { default as i256 } from './I256'; export { default as Method } from './Method'; export { default as Moment } from './Moment'; export { default as Null } from './Null'; @@ -33,10 +33,10 @@ export { default as StorageHasher } from './StorageHasher'; export { default as StorageKey } from './StorageKey'; export { default as Text } from './Text'; export { default as Type } from './Type'; -export { default as u8, default as U8 } from './U8'; -export { default as u16, default as U16 } from './U16'; -export { default as u32, default as U32 } from './U32'; -export { default as u64, default as U64 } from './U64'; -export { default as u128, default as U128 } from './U128'; -export { default as u256, default as U256 } from './U256'; +export { default as u8 } from './U8'; +export { default as u16 } from './U16'; +export { default as u32 } from './U32'; +export { default as u64 } from './U64'; +export { default as u128 } from './U128'; +export { default as u256 } from './U256'; export { default as usize } from './USize';