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

Function parseOutputs

packages/typechain/src/parser/abiParser.ts:213–222  ·  view source on GitHub ↗
(
  registerStruct: (struct: StructType) => void,
  outputs?: Array<RawAbiParameter>,
)

Source from the content-addressed store, hash-verified

211}
212
213function parseOutputs(
214 registerStruct: (struct: StructType) => void,
215 outputs?: Array<RawAbiParameter>,
216): AbiOutputParameter[] {
217 if (!outputs || outputs.length === 0) {
218 return [{ name: '', type: { type: 'void' } }]
219 } else {
220 return outputs.map(parseRawAbiParameter.bind(null, registerStruct))
221 }
222}
223
224export function parseEvent(
225 abiPiece: RawEventAbiDefinition,

Callers 2

parseFallbackFunction · 0.85
parseFunctionDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…