Skip to main content

Documentation Index

Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

deleteCallingFunction(config, rulesEngineComponentContract, policyId, callingFunctionId): Promise<number>
Delete a calling function from the rules engine component contract.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEngineComponentContractobjectThe contract instance containing the address and ABI
rulesEngineComponentContract.abi(object | object | object)[]-
rulesEngineComponentContract.address`0x${string}`-
policyIdnumberThe ID of the policy for which the calling function is being deleted.
callingFunctionIdnumberThe calling function 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.

Defined in

src/modules/calling-functions.ts:116