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:
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
Vendored
+1
-1
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user