removeClosedPolicySubscriber(
config
,rulesEngineComponentContract
,policyId
,subscriber
):Promise
<number
>
Removes a subscriber from the closed policy.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | The contract instance for interacting with the Rules Engine Components. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to remove from. |
subscriber | `0x${string}` | - |
Promise
<number
>
0
if successful, -1
if an error occurs.
removeClosedPolicySubscriber(
config
,rulesEngineComponentContract
,policyId
,subscriber
):Promise
<number
>
Removes a subscriber from the closed policy.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEngineComponentContract | object | The contract instance for interacting with the Rules Engine Components. |
rulesEngineComponentContract.abi | (object | object | object )[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to remove from. |
subscriber | `0x${string}` | - |
Promise
<number
>
0
if successful, -1
if an error occurs.