Introduce bundle exports (#3742)

* Introduce bundle exports

* Move memo

* Cleanup imports

* Move DoNotConstruct
This commit is contained in:
Jaco
2021-07-07 11:35:30 +02:00
committed by GitHub
parent 33ee38dc7a
commit 81be70e15b
41 changed files with 874 additions and 792 deletions
+1 -2
View File
@@ -15,9 +15,8 @@ import type { VersionedRegistry } from './types';
import { BehaviorSubject, combineLatest, map, of, switchMap, tap, toArray } from 'rxjs';
import { decorateDerive, ExactDerive } from '@polkadot/api-derive';
import { memo } from '@polkadot/api-derive/util';
import { expandMetadata, Metadata } from '@polkadot/metadata';
import { RpcCore } from '@polkadot/rpc-core';
import { memo, RpcCore } from '@polkadot/rpc-core';
import { WsProvider } from '@polkadot/rpc-provider';
import { TypeRegistry } from '@polkadot/types/create';
import { DEFAULT_VERSION as EXTRINSIC_DEFAULT_VERSION } from '@polkadot/types/extrinsic/constants';
+10
View File
@@ -0,0 +1,10 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { Keyring } from '@polkadot/keyring';
export { WsProvider, HttpProvider } from '@polkadot/rpc-provider';
export { packageInfo } from './packageInfo';
export { ApiPromise, decorateMethod as decorateMethodPromise } from './promise';
export { SubmittableResult } from './submittable';
export { ApiRx, decorateMethod as decorateMethodRx } from './rx';
+1 -7
View File
@@ -3,10 +3,4 @@
import './detectPackage';
export { Keyring } from '@polkadot/keyring';
export { WsProvider } from '@polkadot/rpc-provider/ws';
export { packageInfo } from './packageInfo';
export { ApiPromise } from './promise';
export { SubmittableResult } from './submittable';
export { ApiRx } from './rx';
export * from './bundle';
+1 -1
View File
@@ -11,7 +11,7 @@ import { jest } from '@jest/globals';
import { combineLatest, map, of, switchMap } from 'rxjs';
import { ApiPromise, WsProvider } from '@polkadot/api';
import { memo } from '@polkadot/api-derive/util/memo';
import { memo } from '@polkadot/rpc-core';
interface VestingInfo extends Struct {
readonly locked: Balance;