import { EventRecord } from '@polkadot/types/interfaces' ; export function filterEvents ( events , _section , _method ) { return events . filter ( ( { event : { method , section } } ) => section === _section && method === _method ) ; }