isClosedPolicy(config, rulesEnginePolicyContract, policyId): Promise<boolean>

Retrieves whether a policy is open or closed.

Parameters

ParameterTypeDescription
configConfig-
rulesEnginePolicyContractobjectThe contract instance for interacting with the Rules Engine Policy.
rulesEnginePolicyContract.abi(object | object)[]-
rulesEnginePolicyContract.address`0x${string}`-
policyIdnumberThe ID of the policy to check.

Returns

Promise<boolean>

array of all of the policy ids applied to the contract

Defined in

src/modules/policy.ts:585

isClosedPolicy(config, rulesEnginePolicyContract, policyId): Promise<boolean>

Retrieves whether a policy is open or closed.

Parameters

ParameterTypeDescription
configConfig-
rulesEnginePolicyContractobjectThe contract instance for interacting with the Rules Engine Policy.
rulesEnginePolicyContract.abi(object | object)[]-
rulesEnginePolicyContract.address`0x${string}`-
policyIdnumberThe ID of the policy to check.

Returns

Promise<boolean>

array of all of the policy ids applied to the contract

Defined in

src/modules/policy.ts:585