Move contracts classes to srml/contracts (now as types-only) (#1153)

* Move contracts classes to srml/contracts (now as types-only)

* Exclude srml generated files from codeclimate

* Alos excluse types/src/scripts

* Replace Compact<T>.toBn() with unwrap()

* Fic compact type (#1156)

* Remove as unknown as T (T typing is working)

* Move interfaces back to the relevant types.ts
This commit is contained in:
Jaco Greeff
2019-07-22 14:49:08 +02:00
committed by GitHub
parent 0c7794198a
commit dd7b138c02
26 changed files with 207 additions and 413 deletions
@@ -4,9 +4,12 @@
import { Metadata, BlockNumber } from '@polkadot/types';
import json from '@polkadot/types/Metadata/v6/static';
import { injectDefinitions } from '@polkadot/types/Metadata/util/testUtil';
import fromMetadata from '../fromMetadata';
injectDefinitions();
// Use the pre-generated metadata
const metadata = new Metadata(json);
const consts = fromMetadata(metadata);