Pull parameter_types! from metadata (#1066)
* @polkadot/{extrinsics,storage} moved to @polkadot/metadata
* Fix previous commit
* Fix previous commit
* Expose parameter types using api.consts
* Grumbles; update v6 static metadata; add UncleEntryItem (fix #1067)
* Update api.query.* to api.consts.* where changed
* Update tests and stray api.query.staking.sessionsPerEra
* Grumbles
* Grumbles
* Revert updates to api-derive (taken care of by #1068)
* Grumbles; fix UncleEntryItem
* Rename "@polkadot/metadata" => "@polkadot/api-metadata"
* Skip derive test
* Grumbles
* Grumbles
* Grumbles
* Cleanup merge, ensure metadata is latest
* Move api-metadata to actual api-metadata folder
* README api-metadata description (& folder link)
* Remove stray type-extrinsics package.json
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { BlockNumber, Index, SignedBlock, StorageChangeSet } from '@polkadot/types';
|
||||
import storage from '@polkadot/storage/static';
|
||||
import storage from '@polkadot/api-metadata/storage/static';
|
||||
import WsProvider from '@polkadot/rpc-provider/ws';
|
||||
import { BlockNumber, Index, SignedBlock, StorageChangeSet } from '@polkadot/types';
|
||||
|
||||
import Rpc from '../../src';
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ import path from 'path';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import ApiPromise from '@polkadot/api/promise/Api';
|
||||
import storage from '@polkadot/api-metadata/storage/static';
|
||||
import { Abi } from '@polkadot/api-contract';
|
||||
import testingPairs from '@polkadot/keyring/testingPairs';
|
||||
import { KeyringPair } from '@polkadot/keyring/types';
|
||||
import WsProvider from '@polkadot/rpc-provider/ws';
|
||||
import storage from '@polkadot/storage/static';
|
||||
import { Balance, Bytes, Hash, Metadata, Moment, StorageData, StorageKey } from '@polkadot/types';
|
||||
|
||||
import Rpc from '../../src';
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { StorageChangeSet } from '@polkadot/types';
|
||||
import WsProvider from '@polkadot/rpc-provider/ws';
|
||||
import storage from '@polkadot/storage/static';
|
||||
import storage from '@polkadot/api-metadata/storage/static';
|
||||
|
||||
import Rpc from '../../src';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user