removeClosedPolicySubscriber(config, rulesEngineComponentContract, policyId, subscriber): Promise<number>

Removes a subscriber from 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 remove from.
subscriber`0x${string}`-

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:745

removeClosedPolicySubscriber(config, rulesEngineComponentContract, policyId, subscriber): Promise<number>

Removes a subscriber from 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 remove from.
subscriber`0x${string}`-

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:745