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

Adds a 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 add to.
subscriber`0x${string}`-

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:708

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

Adds a 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 add to.
subscriber`0x${string}`-

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:708