deleteFunctionSignature
deleteFunctionSignature(
config
,rulesEngineComponentContract
,policyId
,functionSignatureId
):Promise
<number
>
Delete a function signature from the rules engine component contract.
Parameters
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 for which the function signature is being created. |
functionSignatureId | number | The function signature ID to be deleted. |
Returns
Promise
<number
>
A promise that resolves to the result of the contract interaction, or -1 if unsuccessful.
Throws
Will retry indefinitely on contract interaction failure, with a delay between attempts.