@moonwall/cli
Version:
Testing framework for the Moon family of projects
7 lines (6 loc) • 602 B
TypeScript
import type { DispatchError, DispatchInfo, EventRecord } from "@polkadot/types/interfaces";
export declare function filterAndApply<T>(events: EventRecord[], section: string, methods: string[], onFound: (record: EventRecord) => T): T[];
export declare function getDispatchError({ event: { data: [dispatchError], }, }: EventRecord): DispatchError;
export declare function extractError(events?: EventRecord[]): DispatchError | undefined;
export declare function isExtrinsicSuccessful(events?: EventRecord[]): boolean;
export declare function extractInfo(events?: EventRecord[]): DispatchInfo | undefined;