convertForeignCallStructsToStrings(foreignCallsOnChain, callingFunctionMappings): ForeignCallDataAndJSON[]
Defined in: src/parsing/reverse-parsing-logic.ts:592 Convert on-chain foreign call entries into { data, json } pairs. Resolves function signatures and return types using callingFunctionMappings and PT, and maps each on-chain entry to the ForeignCallJSON shape along with an id-bearing ForeignCallData. The output string format is: Foreign Call <index> --> <foreignCallAddress> --> <functionSignature> --> <returnType> --> <parameterTypes> Example:
Foreign Call 1 --> 0x1234567890abcdef --> myFunction(uint256) --> uint256 --> uint256, string

Parameters

ParameterTypeDescription
foreignCallsOnChainForeignCallOnChain[]On-chain foreign call entries.
callingFunctionMappingshexToFunctionString[]Hex-to-function mappings for signatures and arg encodings.

Returns

ForeignCallDataAndJSON[] Array of ForeignCallDataAndJSON.