@polkadot/types
Version:
Implementation of the Parity codec
38 lines (37 loc) • 1.66 kB
TypeScript
import type { Enum, Option, Result, Struct, Vec } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { Pays, Weight } from '@polkadot/types/interfaces/runtime';
import type { DispatchError, Event } from '@polkadot/types/interfaces/system';
import type { OutcomeV4, VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
/** @name CallDryRunEffects */
export interface CallDryRunEffects extends Struct {
readonly executionResult: DispatchResultWithPostInfo;
readonly emittedEvents: Vec<Event>;
readonly localXcm: Option<VersionedXcm>;
readonly forwardedXcms: Vec<ITuple<[VersionedMultiLocation, Vec<VersionedXcm>]>>;
}
/** @name DispatchResultWithPostInfo */
export interface DispatchResultWithPostInfo extends Result<PostDispatchInfo, DispatchError> {
readonly isErr: boolean;
readonly asErr: DispatchError;
readonly isOk: boolean;
readonly asOk: PostDispatchInfo;
}
/** @name PostDispatchInfo */
export interface PostDispatchInfo extends Struct {
readonly actualWeight: Option<Weight>;
readonly paysFee: Pays;
}
/** @name XcmDryRunApiError */
export interface XcmDryRunApiError extends Enum {
readonly isUnimplemented: boolean;
readonly isVersionedConversionFailed: boolean;
readonly type: 'Unimplemented' | 'VersionedConversionFailed';
}
/** @name XcmDryRunEffects */
export interface XcmDryRunEffects extends Struct {
readonly executionResult: OutcomeV4;
readonly emittedEvents: Vec<Event>;
readonly forwardedXcms: Vec<ITuple<[VersionedMultiLocation, Vec<VersionedXcm>]>>;
}
export type PHANTOM_DRYRUNAPI = 'dryRunApi';