policyExists(
config
,rulesEnginePolicyContract
,rulesEngineComponentContract
,policyId
):Promise
<boolean
>
Checks if a policy exists in the Rules Engine.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
rulesEngineComponentContract | object | The contract instance for interacting with the Rules Engine Component. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to check. |
Promise
<boolean
>
True if the policy exists, false otherwise.
policyExists(
config
,rulesEnginePolicyContract
,rulesEngineComponentContract
,policyId
):Promise
<boolean
>
Checks if a policy exists in the Rules Engine.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
rulesEngineComponentContract | object | The contract instance for interacting with the Rules Engine Component. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to check. |
Promise
<boolean
>
True if the policy exists, false otherwise.