Move additional classes to definition-only (#1165)

* Move additional classes to definition-only

* Move some additional quick-hit types

* Last of the easier type/* conversions

* Remove rhd files

* Remove commented line

* Add injector to types loading

* typo

* Update comment

* Merge master

* Rework & organize CHANGELOG

* Some small helper cleanups
This commit is contained in:
Jaco Greeff
2019-07-25 10:32:26 +02:00
committed by GitHub
parent 9ef7ee4a67
commit a25110b281
107 changed files with 682 additions and 1558 deletions
@@ -3,10 +3,13 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { Extrinsic, Metadata } from '@polkadot/types';
import { injectDefinitions } from '@polkadot/types/srml';
import json from '@polkadot/types/Metadata/v7/static';
import fromMetadata from '.';
injectDefinitions();
// Use the pre-generated metadata
const metadata = new Metadata(json);
const newExtrinsics = fromMetadata(metadata);
@@ -5,11 +5,15 @@
import testingPairs from '@polkadot/keyring/testingPairs';
import { Metadata } from '@polkadot/types';
import json from '@polkadot/types/Metadata/v6/static';
import { injectDefinitions } from '@polkadot/types/srml';
import { u8aToHex } from '@polkadot/util';
import fromMetadata from '../fromMetadata';
injectDefinitions();
const keyring = testingPairs({ type: 'ed25519' });
// Use the pre-generated metadata
const metadata = new Metadata(json);
const storage = fromMetadata(metadata);