appendPolicy(config, rulesEnginePolicyContract, policyId, contractAddressForPolicy, confirmationCount): Promise<void>
Defined in: src/modules/policy.ts:392 Appends a policy to the list of policies applied to a specific contract address.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEnginePolicyContract{ abi: ({ anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[]; address: `0x${string}`; }The contract instance for interacting with the Rules Engine Policy.
rulesEnginePolicyContract.abi({ anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[]-
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.
confirmationCountnumber-

Returns

Promise<void>