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