appendPolicy(config, rulesEnginePolicyContract, policyId, contractAddressForPolicy): Promise<void>

Appends a policy to the list of policies applied to a specific contract address.

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 apply.
contractAddressForPolicy`0x${string}`The address of the contract to which the policy will be applied.

Returns

Promise<void>

Defined in

src/modules/policy.ts:313

appendPolicy(config, rulesEnginePolicyContract, policyId, contractAddressForPolicy): Promise<void>

Appends a policy to the list of policies applied to a specific contract address.

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 apply.
contractAddressForPolicy`0x${string}`The address of the contract to which the policy will be applied.

Returns

Promise<void>

Defined in

src/modules/policy.ts:313