MCPcopy Index your code
hub / github.com/dethcrypto/TypeChain / parseFunctionDeclaration

Function parseFunctionDeclaration

packages/typechain/src/parser/abiParser.ts:302–315  ·  view source on GitHub ↗
(
  abiPiece: RawAbiDefinition,
  registerStruct: (struct: StructType) => void,
  documentation?: DocumentationResult,
)

Source from the content-addressed store, hash-verified

300}
301
302function parseFunctionDeclaration(
303 abiPiece: RawAbiDefinition,
304 registerStruct: (struct: StructType) => void,
305 documentation?: DocumentationResult,
306): FunctionDeclaration {
307 debug(`Parsing function declaration "${abiPiece.name}"`)
308 return {
309 name: abiPiece.name,
310 inputs: abiPiece.inputs.map(parseRawAbiParameter.bind(null, registerStruct)),
311 outputs: parseOutputs(registerStruct, abiPiece.outputs),
312 stateMutability: findStateMutability(abiPiece),
313 documentation: getFunctionDocumentation(abiPiece, documentation),
314 }
315}
316
317function parseRawAbiParameter(
318 registerStruct: (struct: StructType) => void,

Callers 1

parseFunction · 0.85

Calls 3

parseOutputsFunction · 0.85
findStateMutabilityFunction · 0.85
getFunctionDocumentationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…