Skip to main content

Documentation Index

Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

getAllForeignCalls(config, rulesEngineForeignCallContract, policyId): Promise<ForeignCallOnChain[]>
Retrieves all foreign calls associated with a specific policy ID from the Rules Engine Component Contract.

Parameters

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

Returns

Promise<ForeignCallOnChain[]> 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:488