policyExists(config, rulesEnginePolicyContract, rulesEngineComponentContract, policyId): Promise<boolean>

Checks if a policy exists in the Rules Engine.

Parameters

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

Returns

Promise<boolean>

True if the policy exists, false otherwise.

Defined in

src/modules/policy.ts:533

policyExists(config, rulesEnginePolicyContract, rulesEngineComponentContract, policyId): Promise<boolean>

Checks if a policy exists in the Rules Engine.

Parameters

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

Returns

Promise<boolean>

True if the policy exists, false otherwise.

Defined in

src/modules/policy.ts:533