MCPcopy Create free account
hub / github.com/dethcrypto/TypeChain / parseContractPath

Function parseContractPath

packages/typechain/src/parser/abiParser.ts:138–146  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

136}
137
138export function parseContractPath(path: string) {
139 const parsedPath = parsePath(normalizeSlashes(path))
140
141 return {
142 name: normalizeName(parsedPath.name),
143 rawName: parsedPath.name,
144 path: parsedPath.dir.split('/').filter((x) => x),
145 }
146}
147
148export function parse(abi: RawAbiDefinition[], path: string, documentation?: DocumentationResult): Contract {
149 const constructors: FunctionWithoutOutputDeclaration[] = []

Callers 2

transformFileMethod · 0.90
parseFunction · 0.85

Calls 2

normalizeSlashesFunction · 0.90
normalizeNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…