updatePolicy(config, rulesEnginePolicyContract, policyId, signatures, ids, ruleIds): Promise<number>

Updates an existing policy in 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 update.
signaturesany[]The function signatures associated with the policy.
idsnumber[]The IDs of the rules associated with the policy.
ruleIdsany[]The mapping of rules to function signatures.

Returns

Promise<number>

The result of the policy update.

Defined in

src/modules/policy.ts:150