MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / parseCode2

Function parseCode2

src/parser/index.ts:205–219  ·  view source on GitHub ↗
(sourceCode: string)

Source from the content-addressed store, hash-verified

203}
204
205export function parseCode2(sourceCode: string): {
206 functions: AbiFunction[];
207 errors: AbiError[];
208 structs: AbiType<true>[],
209 events: AbiEvent[]
210} {
211 const input = Parser.parseFile(sourceCode);
212 const handler = new ParserWrapper(input);
213 return {
214 functions: handler.allFunctions,
215 errors: handler.allErrors,
216 structs: handler.allStructs,
217 events: handler.allEvents
218 };
219}
220
221export const elementaryToTypeDef = (typeName: string): AbiElementaryType => {
222 const isBool = /bool/g.exec(typeName);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected