Move (some) from session & elections to srml/types (#1158)

* Move (some) from session & elections to srml/types

* Just use createType instad of (new ClassOf(type))(value)

* Cleanup generation script (import file duplication)
This commit is contained in:
Jaco Greeff
2019-07-23 11:47:45 +02:00
committed by GitHub
parent 8925a9a925
commit ebc2fbe3ee
27 changed files with 138 additions and 91 deletions
@@ -4,7 +4,7 @@
import { Metadata, BlockNumber } from '@polkadot/types';
import json from '@polkadot/types/Metadata/v6/static';
import { injectDefinitions } from '@polkadot/types/Metadata/util/testUtil';
import { injectDefinitions } from '@polkadot/types/srml';
import fromMetadata from '../fromMetadata';