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:
Axel Chalon
2019-07-09 08:54:28 +02:00
committed by Jaco Greeff
parent 4984002111
commit 9abbaab991
58 changed files with 202 additions and 305 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsicsFromMeta from '@polkadot/extrinsics/fromMetadata';
import extrinsicsFromMeta from '@polkadot/api-metadata/extrinsics/fromMetadata';
import createType from '../../codec/createType';
import Metadata from '../Metadata';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import { CodecTo } from '../types';
import Method from '../primitive/Method';
+1 -1
View File
@@ -4,7 +4,7 @@
import { Codec, CodecTo } from '../types';
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import AccountId from '../primitive/AccountId';
import Method from '../primitive/Method';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import { Constructor } from './types';
import * as Classes from './index.types';
+2 -2
View File
@@ -1,8 +1,8 @@
// Copyright 2017-2019 @polkadot/extrinsics authors & contributors
// Copyright 2017-2019 @polkadot/api-metadata authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import Method from './Method';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2019 @polkadot/extrinsics authors & contributors
// Copyright 2017-2019 @polkadot/api-metadata authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
@@ -2,8 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import fromMetadata from '@polkadot/api-metadata/storage/fromMetadata';
import { hexToU8a } from '@polkadot/util';
import fromMetadata from '@polkadot/storage/fromMetadata';
import rpcDataV3 from '@polkadot/types/Metadata/v3/static';
import rpcDataV4 from '@polkadot/types/Metadata/v4/static';
import rpcDataV5 from '@polkadot/types/Metadata/v5/static';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import block00300 from '../json/SignedBlock.003.00.json';
import Method from '../primitive/Method';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import Extrinsics from '../type/Extrinsics';
import Method from '../primitive/Method';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import extrinsics from '@polkadot/extrinsics/static';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
import Method from '../primitive/Method';
import Extrinsic from './Extrinsic';