Few missing type imports (#2972)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2020 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
||||||
|
|
||||||
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
||||||
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2020 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2020 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base';
|
||||||
|
|
||||||
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
|
||||||
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { FunctionMetadataLatest } from '../interfaces/metadata';
|
import type { FunctionMetadataLatest } from '../interfaces/metadata';
|
||||||
import { Call } from '../interfaces/runtime';
|
import type { Call } from '../interfaces/runtime';
|
||||||
|
|
||||||
export interface CallBase {
|
export interface CallBase {
|
||||||
callIndex: Uint8Array;
|
callIndex: Uint8Array;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
// Copyright 2017-2020 @polkadot/types authors & contributors
|
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { ExtrinsicStatus } from '../interfaces/author';
|
import type { ExtrinsicStatus } from '../interfaces/author';
|
||||||
import { EcdsaSignature, Ed25519Signature, Sr25519Signature } from '../interfaces/extrinsics';
|
import type { EcdsaSignature, Ed25519Signature, Sr25519Signature } from '../interfaces/extrinsics';
|
||||||
import { Address, Balance, Call, H256, Index } from '../interfaces/runtime';
|
import type { Address, Balance, Call, H256, Index } from '../interfaces/runtime';
|
||||||
import { DispatchError, DispatchInfo, EventRecord } from '../interfaces/system';
|
import type { DispatchError, DispatchInfo, EventRecord } from '../interfaces/system';
|
||||||
import { AnyJson, AnyNumber, AnyU8a, Codec } from './codec';
|
import type { AnyJson, AnyNumber, AnyU8a, Codec } from './codec';
|
||||||
import { ICompact, IKeyringPair, IMethod, IRuntimeVersion } from './interfaces';
|
import type { ICompact, IKeyringPair, IMethod, IRuntimeVersion } from './interfaces';
|
||||||
|
|
||||||
export interface ISubmittableResult {
|
export interface ISubmittableResult {
|
||||||
readonly dispatchError?: DispatchError;
|
readonly dispatchError?: DispatchError;
|
||||||
|
|||||||
@@ -3,10 +3,9 @@
|
|||||||
|
|
||||||
import type BN from 'bn.js';
|
import type BN from 'bn.js';
|
||||||
import type { SignOptions } from '@polkadot/keyring/types';
|
import type { SignOptions } from '@polkadot/keyring/types';
|
||||||
|
import type { FunctionMetadataLatest } from '../interfaces/metadata';
|
||||||
import { FunctionMetadataLatest } from '../interfaces/metadata';
|
import type { Hash } from '../interfaces/runtime';
|
||||||
import { Hash } from '../interfaces/runtime';
|
import type { ArgsDef, Codec } from './codec';
|
||||||
import { ArgsDef, Codec } from './codec';
|
|
||||||
|
|
||||||
export interface ICompact<T> extends Codec {
|
export interface ICompact<T> extends Codec {
|
||||||
toBigInt (): BigInt;
|
toBigInt (): BigInt;
|
||||||
|
|||||||
Reference in New Issue
Block a user