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
@@ -7,7 +7,7 @@ import { Method } from '@polkadot/jsonrpc/types';
import { Observable, combineLatest } from 'rxjs';
import { defaultIfEmpty, map } from 'rxjs/operators';
import { StorageFunction } from '@polkadot/api-codec/StorageKey';
import { StorageFunction } from '@polkadot/types/StorageKey';
import assert from '@polkadot/util/assert';
import isUndefined from '@polkadot/util/is/undefined';
+1 -1
View File
@@ -4,7 +4,7 @@
import { Observable } from 'rxjs';
import { defaultIfEmpty, map } from 'rxjs/operators';
import { BlockNumber, Header, SignedBlock } from '@polkadot/api-codec/index';
import { BlockNumber, Header, SignedBlock } from '@polkadot/types/index';
import ApiQueries from './Queries';
+1 -1
View File
@@ -7,7 +7,7 @@ import { RxBalance, RxBalanceMap, RxReferendumVote } from './types';
import BN from 'bn.js';
import { EMPTY, Observable } from 'rxjs';
import { switchMap, defaultIfEmpty, map } from 'rxjs/operators';
import { AccountId, Balance, Bool, BlockNumber, Moment, ReferendumIndex } from '@polkadot/api-codec/index';
import { AccountId, Balance, Bool, BlockNumber, Moment, ReferendumIndex } from '@polkadot/types/index';
import isString from '@polkadot/util/is/string';
import ApiCalls from './Calls';
+2 -2
View File
@@ -7,8 +7,8 @@ import { RxFees } from './types';
import BN from 'bn.js';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { AccountId, Balance, Bool, BlockNumber, Index, Moment, Perbill, PropIndex, ReferendumIndex, u32 } from '@polkadot/api-codec/index';
import { Tuple } from '@polkadot/api-codec/codec';
import { AccountId, Balance, Bool, BlockNumber, Index, Moment, Perbill, PropIndex, ReferendumIndex, u32 } from '@polkadot/types/index';
import { Tuple } from '@polkadot/types/codec';
import storage from '@polkadot/storage/testing';
import ApiBase from './Base';
+2 -2
View File
@@ -3,8 +3,8 @@
// of the ISC license. See the LICENSE file for details.
import BN from 'bn.js';
import { AccountId, Balance, BlockNumber, PropIndex, Proposal, ReferendumIndex, VoteThreshold } from '@polkadot/api-codec/index';
import { Struct, Tuple, Vector } from '@polkadot/api-codec/codec';
import { AccountId, Balance, BlockNumber, PropIndex, Proposal, ReferendumIndex, VoteThreshold } from '@polkadot/types/index';
import { Struct, Tuple, Vector } from '@polkadot/types/codec';
export class RxProposal extends Struct.with({ id: PropIndex, proposal: Proposal, address: AccountId }) {
constructor (value: Tuple) {
+2 -2
View File
@@ -3,8 +3,8 @@
// of the ISC license. See the LICENSE file for details.
import { Observable } from 'rxjs';
import { AccountId, Balance, BlockNumber, Bool, Header, PropIndex, Proposal, ReferendumIndex, u32, VoteThreshold } from '@polkadot/api-codec/index';
import { Tuple } from '@polkadot/api-codec/codec';
import { AccountId, Balance, BlockNumber, Bool, Header, PropIndex, Proposal, ReferendumIndex, u32, VoteThreshold } from '@polkadot/types/index';
import { Tuple } from '@polkadot/types/codec';
import ApiBase from './Base';
import ApiCalls from './Calls';