Split rpc augmentation (#4349)

* Split rpc augmentation

* CC

* Split augmentation trigger

* Exports
This commit is contained in:
Jaco
2021-12-18 13:15:15 +02:00
committed by GitHub
parent 6518166252
commit 6d1b9cbfb2
36 changed files with 365 additions and 49 deletions
+5
View File
@@ -0,0 +1,5 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/api-augment/augment';
import '@polkadot/rpc-augment/augment';
+2 -4
View File
@@ -1,13 +1,12 @@
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/api-augment/augment';
import './augment';
import type { QueryableConsts } from '@polkadot/api-augment/consts';
import type { DecoratedErrors } from '@polkadot/api-augment/errors';
import type { DecoratedEvents } from '@polkadot/api-augment/events';
import type { QueryableStorage } from '@polkadot/api-augment/query';
import type { SubmittableExtrinsics } from '@polkadot/api-augment/tx';
import type { ApiInterfaceRx as ApiInterfaceBase, ApiTypes, QueryableStorageMulti } from '@polkadot/api-base/types';
import type { DeriveCustom } from '@polkadot/api-derive';
import type { ProviderInterface, ProviderInterfaceEmitted } from '@polkadot/rpc-provider/types';
@@ -21,12 +20,11 @@ import type { AllDerives } from './util/decorate';
export * from '@polkadot/api-base/types';
export type { AugmentedConsts, AugmentedErrors, AugmentedEvents, AugmentedQueries, AugmentedSubmittables, QueryableConsts, DecoratedErrors, DecoratedEvents, QueryableStorage, QueryableStorageAt, SubmittableExtrinsics } from '@polkadot/api-augment';
export { Signer, SignerResult } from '@polkadot/types/types';
export { ApiBase } from './base';
export type { DecoratedErrors, DecoratedEvents, QueryableConsts, QueryableStorage, SubmittableExtrinsics };
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
export interface ApiInterfaceRx extends ApiInterfaceBase {
derive: AllDerives<'rxjs'>;