getAllForeignCalls(config, rulesEngineComponentContract, policyId): Promise<null | any[]>

Retrieves all foreign calls associated with a specific policy ID from the Rules Engine Component Contract.

Parameters

ParameterTypeDescription
configConfig-
rulesEngineComponentContractobjectAn object representing the Rules Engine Component Contract,
rulesEngineComponentContract.abi(object | object | object)[]-
rulesEngineComponentContract.address`0x${string}`-
policyIdnumberThe ID of the policy for which foreign calls are to be retrieved. containing its address and ABI.

Returns

Promise<null | any[]>

A promise that resolves to an array of foreign calls if successful, or null if an error occurs.

Throws

Will log an error to the console if the operation fails.

Defined in

src/modules/foreign-calls.ts:249