isClosedPolicy(
config
,rulesEnginePolicyContract
,policyId
):Promise
<boolean
>
Retrieves whether a policy is open or closed.
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}` | - |
policyId | number | The ID of the policy to check. |
Promise
<boolean
>
array of all of the policy ids applied to the contract
isClosedPolicy(
config
,rulesEnginePolicyContract
,policyId
):Promise
<boolean
>
Retrieves whether a policy is open or closed.
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}` | - |
policyId | number | The ID of the policy to check. |
Promise
<boolean
>
array of all of the policy ids applied to the contract