Add function docs
This commit is contained in:
@@ -77,6 +77,11 @@ export function getNormalizedErrMsg(errMsg: string): string {
|
||||
return normalizedErrMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the contract source code and extracts the dendencies
|
||||
* @param source Contract source code
|
||||
* @return List of dependendencies
|
||||
*/
|
||||
export function parseDependencies(source: string): string[] {
|
||||
// TODO: Use a proper parser
|
||||
const IMPORT_REGEX = /(import\s)/;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { logUtils } from '@0xproject/utils';
|
||||
|
||||
// Makes an async function no-throw printing errors to the console
|
||||
export function consoleReporter<T>(asyncFn: (arg: T) => Promise<void>) {
|
||||
const noThrowFnAsync = async (arg: T) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user