openPolicy(
config
,rulesEnginePolicyContract
,policyId
):Promise
<number
>
Opens a policy on the Rules Engine.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to open. |
Promise
<number
>
0
if successful, -1
if an error occurs.
openPolicy(
config
,rulesEnginePolicyContract
,policyId
):Promise
<number
>
Opens a policy on the Rules Engine.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
policyId | number | The ID of the policy to open. |
Promise
<number
>
0
if successful, -1
if an error occurs.