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
This commit is contained in:
Jaco Greeff 2020-11-24 11:05:25 +01:00 committed by GitHub
parent b799e278c5
commit 0e132f2070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<KeyValue>'] },
{ c: Moment, t: ['Moment', 'MomentOf'] },