deleteFunctionSignature(config, rulesEngineComponentContract, policyId, functionSignatureId): Promise<number>

Delete a function signature from the rules engine component contract.

Parameters

ParameterTypeDescription
configConfig-
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 function signature is being created.
functionSignatureIdnumberThe 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.

Defined in

src/modules/function-signatures.ts:106