MCPcopy Create free account
hub / github.com/wevm/viem / structComponents

Function structComponents

scripts/generateTempoAbis.ts:408–419  ·  view source on GitHub ↗
(
    file: string,
    name: string,
    nested: Record<string, readonly AbiParameter[]> = {},
  )

Source from the content-addressed store, hash-verified

406 }
407
408 function structComponents(
409 file: string,
410 name: string,
411 nested: Record<string, readonly AbiParameter[]> = {},
412 ) {
413 return extractStruct(file, name).map(({ name, type }) => {
414 if (type === 'Flow') return { name, type: 'uint8' }
415 const components = nested[type]
416 if (components) return { components, name, type: 'tuple' }
417 return { name, type }
418 })
419 }
420
421 function routerCallbackDataParameter(checkout: string) {
422 const zone = Path.join(checkout, 'src/interfaces/external/tempo/IZone.sol')

Callers 1

Calls 1

extractStructFunction · 0.85

Tested by

no test coverage detected