isClosedPolicySubscriber(config, rulesEngineComponentContract, policyId, subscriber): Promise<boolean>

Retrieves whether an address is a possible subscriber to the closed policy.

Parameters

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

Returns

Promise<boolean>

array of all of the policy ids applied to the contract

Defined in

src/modules/policy.ts:682

isClosedPolicySubscriber(config, rulesEngineComponentContract, policyId, subscriber): Promise<boolean>

Retrieves whether an address is a possible subscriber to the closed policy.

Parameters

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

Returns

Promise<boolean>

array of all of the policy ids applied to the contract

Defined in

src/modules/policy.ts:682