parseForeignCallDefinition(syntax): ForeignCallDefinition

Parses the foreign call definition and validates its structure.

Parameters

ParameterTypeDescription
syntaxforeignCallJSONThe JSON representation of the foreign call definition.

Returns

ForeignCallDefinition

An object containing the foreign call’s name, address, signature, return type, parameter types, and encoded indices.

Throws

An error if the return type or parameter types are unsupported.

Defined in

src/modules/parser.ts:157