Rename api-codec -> types (#183)

* Rename api-codec -> types

* Cleanups with exports (as found with use)

* Docs to build for /types
This commit is contained in:
Jaco Greeff
2018-10-02 11:30:45 +02:00
committed by GitHub
parent 7e191db702
commit 48e57f9a55
127 changed files with 149 additions and 143 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
"dependencies": {
"@babel/runtime": "^7.0.0",
"@polkadot/api-codec": "^0.30.9",
"@polkadot/types": "^0.30.9",
"@polkadot/params": "^0.30.3",
"@polkadot/primitives": "^0.30.3",
"@polkadot/util": "^0.30.7",
@@ -2,8 +2,8 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import Metadata from '@polkadot/api-codec/Metadata';
import json from '@polkadot/api-codec/Metadata.rpc';
import Metadata from '@polkadot/types/Metadata';
import json from '@polkadot/types/Metadata.rpc';
import fromMetadata from './fromMetadata';
+1 -1
View File
@@ -4,7 +4,7 @@
import { ModuleStorage, Storage } from './types';
import Metadata from '@polkadot/api-codec/Metadata';
import Metadata from '@polkadot/types/Metadata';
import { stringLowerFirst } from '@polkadot/util/string';
import createFunction from './utils/createFunction';
+3 -3
View File
@@ -2,9 +2,9 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { StorageFunctionModifier, StorageFunctionType } from '@polkadot/api-codec/Metadata';
import Text from '@polkadot/api-codec/Text';
import Vector from '@polkadot/api-codec/codec/Vector';
import { StorageFunctionModifier, StorageFunctionType } from '@polkadot/types/Metadata';
import Text from '@polkadot/types/Text';
import Vector from '@polkadot/types/codec/Vector';
import createFunction from './utils/createFunction';
+2 -2
View File
@@ -2,8 +2,8 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import metadataRpc from '@polkadot/api-codec/Metadata.rpc';
import Metadata from '@polkadot/api-codec/Metadata';
import metadataRpc from '@polkadot/types/Metadata.rpc';
import Metadata from '@polkadot/types/Metadata';
import storage from './index';
import fromMetadata from './fromMetadata';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { StorageFunction } from '@polkadot/api-codec/StorageKey';
import { StorageFunction } from '@polkadot/types/StorageKey';
import BN from 'bn.js';
import * as substrate from './substrate';
@@ -2,10 +2,10 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { createType } from '@polkadot/api-codec/codec';
import { StorageFunctionMetadata } from '@polkadot/api-codec/Metadata';
import { StorageFunction } from '@polkadot/api-codec/StorageKey';
import { Text } from '@polkadot/api-codec/index';
import { createType } from '@polkadot/types/codec';
import { StorageFunctionMetadata } from '@polkadot/types/Metadata';
import { StorageFunction } from '@polkadot/types/StorageKey';
import { Text } from '@polkadot/types/index';
import { stringLowerFirst } from '@polkadot/util/string';
import u8aConcat from '@polkadot/util/u8a/concat';
import u8aFromUtf8 from '@polkadot/util/u8a/fromUtf8';