policyExists(config, rulesEnginePolicyContract, policyId): Promise<boolean>
Checks if a policy exists in the Rules Engine.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
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> True if the policy exists, false otherwise.

Defined in

src/modules/policy.ts:601