isCallingContractAdmin(config, rulesEngineAdminContract, callingContract, account): Promise<boolean>

Determine if address is the calling contract admin.

This function determines whether or not an address is the admin for a specific calling contract.

Parameters

ParameterTypeDescription
configConfig-
rulesEngineAdminContractobjectThe contract instance containing the address and ABI
rulesEngineAdminContract.abi(object | object | object)[]-
rulesEngineAdminContract.address`0x${string}`-
callingContract`0x${string}`The address of the contract to check the admin for.
account`0x${string}`-

Returns

Promise<boolean>

whether or not the address is the calling contract admin.

Defined in

src/modules/admin.ts:279