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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user