confirmNewPolicyAdmin(config, rulesEngineAdminContract, policyId): Promise<void>

Confirm a new admin in the rules engine admin contract.

This function confirms a new admin for a specific policy.

Parameters

ParameterTypeDescription
configConfig-
rulesEngineAdminContractobjectThe contract instance containing the address and ABI
rulesEngineAdminContract.abi(object | object | object)[]-
rulesEngineAdminContract.address`0x${string}`-
policyIdnumberThe ID of the policy to set the admin for.

Returns

Promise<void>

A promise that resolves to the result of the contract interaction, or -1 if unsuccessful.

Throws

Will retry indefinitely on contract interaction failure, with a delay between attempts.

Defined in

src/modules/admin.ts:87