isForeignCallAdmin(config, rulesEngineAdminContract, foreignCallContract, account, functionSelector): Promise<boolean>
Determine if address is the foreign call admin. This function determines whether or not an address is the admin for a specific foreign call.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEngineAdminContractobjectThe contract instance containing the address and ABI
rulesEngineAdminContract.abi(object | object | object)[]-
rulesEngineAdminContract.address`0x${string}`-
foreignCallContract`0x${string}`The address of the contract to check the admin for.
account`0x${string}`The address to check
functionSelectorstringThe selector for the specific foreign call

Returns

Promise<boolean> whether or not the address is the foreign call admin.

Defined in

src/modules/admin.ts:281