applyPolicy
applyPolicy(
config
,rulesEnginePolicyContract
,policyId
,contractAddressForPolicy
):Promise
<number
>
Applies a policy to a specific contract address.
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 apply. |
contractAddressForPolicy | `0x${string}` | The address of the contract to which the policy will be applied. |
Returns
Promise
<number
>
The result of the policy application.