deleteTracker(Deletes a tracker associated with a specific policy in the rules engine component contract.config
,rulesEngineComponentContract
,policyId
,trackerId
):Promise
<number
>
Parameter | Type | Description |
---|---|---|
config | Config | The configuration object containing network and wallet information. |
rulesEngineComponentContract | object | The contract instance containing the address and ABI for interaction. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to which the tracker belongs. |
trackerId | number | The ID of the tracker to be deleted. |
Promise
<number
>
A promise that resolves to a number: - 0
if the tracker was successfully deleted. - -1
if an error occurred during the simulation of the contract interaction.
-1
if an error occurs during the simulation phase.