parseForeignCallDefinition(syntax, foreignCallNameToID, indexMap, functionArguments): ForeignCallDefinition
Defined in: src/parsing/parser.ts:388 Parses the foreign call definition and validates its structure.

Parameters

ParameterTypeDescription
syntaxForeignCallJSONThe JSON representation of the foreign call definition.
foreignCallNameToIDFCNameToID[]-
indexMapFCNameToID[]-
functionArgumentsstring[]-

Returns

ForeignCallDefinition Either an object containing the foreign call’s name, address, function, return type, parameter types, and encoded indices if successful or an error.