getCallingFunctionMetadata(config, rulesEngineComponentContract, policyId, callingFunctionId): Promise<CallingFunctionHashMapping>

retrieves the metadata for a calling function from the rules engine component contract.

Parameters

ParameterTypeDescription
configConfig-
rulesEngineComponentContractobjectThe contract instance containing the address and ABI
rulesEngineComponentContract.abi(object | object | object)[]-
rulesEngineComponentContract.address`0x${string}`-
policyIdnumberThe ID of the policy which the calling function belongs to.
callingFunctionIdnumberThe calling function ID.

Returns

Promise<CallingFunctionHashMapping>

A promise that resolves to the result of the contract interaction.

Throws

Will retry indefinitely on contract interaction failure, with a delay between attempts.

Defined in

src/modules/calling-functions.ts:157