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

Function parseFallback

packages/typechain/src/parser/abiParser.ts:288–300  ·  view source on GitHub ↗
(
  abiPiece: RawAbiDefinition,
  registerStruct: (struct: StructType) => void,
)

Source from the content-addressed store, hash-verified

286}
287
288function parseFallback(
289 abiPiece: RawAbiDefinition,
290 registerStruct: (struct: StructType) => void,
291): FunctionWithoutInputDeclaration {
292 debug(`Parsing fallback declaration`)
293
294 return {
295 name: 'fallback',
296 inputs: [],
297 outputs: parseOutputs(registerStruct, abiPiece.outputs),
298 stateMutability: findStateMutability(abiPiece),
299 }
300}
301
302function parseFunctionDeclaration(
303 abiPiece: RawAbiDefinition,

Callers 1

parseFunction · 0.85

Calls 2

parseOutputsFunction · 0.85
findStateMutabilityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…