getCallingFunctionMetadata(retrieves the metadata for a calling function from the rules engine component contract.config
,rulesEngineComponentContract
,policyId
,callingFunctionId
):Promise
<CallingFunctionHashMapping
>
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | The contract instance containing the address and ABI |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy which the calling function belongs to. |
callingFunctionId | number | The calling function ID. |
Promise
<CallingFunctionHashMapping
>
A promise that resolves to the result of the contract interaction.