openPolicy(config, rulesEnginePolicyContract, policyId): Promise<number>

Opens a policy on the Rules Engine.

Parameters

ParameterTypeDescription
configConfig-
rulesEnginePolicyContractobjectThe contract instance for interacting with the Rules Engine Policy.
rulesEnginePolicyContract.abi(object | object)[]-
rulesEnginePolicyContract.address`0x${string}`-
policyIdnumberThe ID of the policy to open.

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:646

openPolicy(config, rulesEnginePolicyContract, policyId): Promise<number>

Opens a policy on the Rules Engine.

Parameters

ParameterTypeDescription
configConfig-
rulesEnginePolicyContractobjectThe contract instance for interacting with the Rules Engine Policy.
rulesEnginePolicyContract.abi(object | object)[]-
rulesEnginePolicyContract.address`0x${string}`-
policyIdnumberThe ID of the policy to open.

Returns

Promise<number>

0 if successful, -1 if an error occurs.

Defined in

src/modules/policy.ts:646