convertForeignCallStructsToStrings(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 usingforeignCallsOnChain
,callingFunctionMappings
):ForeignCallDataAndJSON
[]
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:
Parameters
Parameter | Type | Description |
---|---|---|
foreignCallsOnChain | ForeignCallOnChain [] | On-chain foreign call entries. |
callingFunctionMappings | hexToFunctionString [] | Hex-to-function mappings for signatures and arg encodings. |
Returns
ForeignCallDataAndJSON
[]
Array of ForeignCallDataAndJSON.