deletePolicy(config, rulesEnginePolicyContract, policyId): Promise<number>

Deletes a policy from the Rules Engine.

Parameters

ParameterTypeDescription
configConfig-
rulesEnginePolicyContractobjectThe contract instance for interacting with the Rules Engine Policy.
rulesEnginePolicyContract.abi(object | object | object)[]-
rulesEnginePolicyContract.address`0x${string}`-
policyIdnumberThe ID of the policy to delete.

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:229