import{ logUtils } from '@0xproject/utils';// Makes an async function no-throw printing errors to the consoleexport function consoleReporter<T>(asyncFn: (arg: T) => Promise<void>) {const noThrowFnAsync =async(arg: T) => {try{const result =awaitasyncFn(arg);return result;}catch(err) {
logUtils.log(`${err}`);}};return noThrowFnAsync;}