removeMultipleAdminsFromPermissionList(config, rulesEngineForeignCallContract, foreignCallAddress, functionSelector, policyAdminsToRemove): Promise<number>
Removes multiple addresses from the permission list for a foreign call.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEngineForeignCallContractobjectAn object representing the Rules Engine Component Contract,
rulesEngineForeignCallContract.abi(object | object | object)[]-
rulesEngineForeignCallContract.address`0x${string}`-
foreignCallAddress`0x${string}`the address of the contract the foreign call belongs to.
functionSelectorstringThe selector for the specific foreign call
policyAdminsToRemove`0x${string}`[]The address of the admins to remove from the list

Returns

Promise<number> A promise that resolves to a number: - 0 if the operation is successful. - -1 if an error occurs during the simulation of the contract interaction.

Throws

Will log an error to the console if the operation fails.

Defined in

src/modules/foreign-calls.ts:657