From 0e132f20701873b86a9dfb62d195f6799aacd82e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 24 Nov 2020 11:05:25 +0100 Subject: [PATCH] Remove AssetId from known (+ rm non-primitives) (#4063) * Remove AssetId from known (+ rm unused AssetOf) * Remove all non-primitive for Amount * Re-add LookupSource * Remove additional non-primitives --- packages/react-params/src/Param/findComponent.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-params/src/Param/findComponent.ts b/packages/react-params/src/Param/findComponent.ts index 8f0d4e3904..06f7facee1 100644 --- a/packages/react-params/src/Param/findComponent.ts +++ b/packages/react-params/src/Param/findComponent.ts @@ -44,9 +44,9 @@ interface TypeToComponent { const SPECIAL_TYPES = ['AccountId', 'AccountIndex', 'Address', 'Balance']; const componentDef: TypeToComponent[] = [ - { c: Account, t: ['AccountId', 'AccountIdOf', 'Address', 'AuthorityId', 'LookupSource', 'LookupTarget', 'SessionKey', 'ValidatorId'] }, - { c: Amount, t: ['AccountIndex', 'AssetId', 'BlockNumber', 'Gas', 'Index', 'Nonce', 'ParaId', 'ProposalIndex', 'PropIndex', 'ReferendumIndex', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'u256', 'VoteIndex'] }, - { c: Balance, t: ['Amount', 'AssetOf', 'Balance', 'BalanceOf'] }, + { c: Account, t: ['AccountId', 'Address', 'LookupSource'] }, + { c: Amount, t: ['AccountIndex', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'u256'] }, + { c: Balance, t: ['Amount', 'Balance', 'BalanceOf'] }, { c: Bool, t: ['bool'] }, { c: Bytes, t: ['Bytes'] }, { c: Call, t: ['Call', 'Proposal'] }, @@ -54,9 +54,9 @@ const componentDef: TypeToComponent[] = [ { c: DispatchError, t: ['DispatchError'] }, { c: Raw, t: ['Raw', 'Keys'] }, { c: Enum, t: ['Enum'] }, - { c: Hash256, t: ['BlockHash', 'CodeHash', 'Hash', 'H256', 'SeedOf'] }, + { c: Hash256, t: ['Hash', 'H256'] }, { c: Hash160, t: ['H160'] }, - { c: Hash512, t: ['H512', 'Signature'] }, + { c: Hash512, t: ['H512'] }, { c: KeyValue, t: ['KeyValue'] }, { c: KeyValueArray, t: ['Vec'] }, { c: Moment, t: ['Moment', 'MomentOf'] },