parseForeignCallDefinition(Defined in: src/parsing/parser.ts:388 Parses the foreign call definition and validates its structure.syntax
,foreignCallNameToID
,indexMap
,functionArguments
):ForeignCallDefinition
Parameters
Parameter | Type | Description |
---|---|---|
syntax | ForeignCallJSON | The JSON representation of the foreign call definition. |
foreignCallNameToID | FCNameToID [] | - |
indexMap | FCNameToID [] | - |
functionArguments | string [] | - |
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.