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