updatePolicy
updatePolicy(
config
,rulesEnginePolicyContract
,policyId
,signatures
,ids
,ruleIds
):Promise
<number
>
Updates an existing policy in the Rules Engine.
Parameters
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to update. |
signatures | any [] | The function signatures associated with the policy. |
ids | number [] | The IDs of the rules associated with the policy. |
ruleIds | any [] | The mapping of rules to function signatures. |
Returns
Promise
<number
>
The result of the policy update.