subculture
Version:
Polkadot.js and Substrate development utilities.
16 lines (15 loc) • 549 B
TypeScript
import { GenericExtrinsic, Vec } from '@polkadot/types';
import { EventRecord, SignedBlock } from '@polkadot/types/interfaces';
import { AnyTuple } from '@polkadot/types/types';
/**
*
* Get the extrinsics in a block mapped by its events.
*
* @param events Vec<EventRecord>
* @param block SignedBlock
* @param filter.method string
* @returns GenericExtrinsic<AnyTuple>[]
*/
export declare const mapToExtrinsics: (block: SignedBlock, events: Vec<EventRecord>, filter?: {
method?: string;
}) => GenericExtrinsic<AnyTuple>[];