Skip to main content

Documentation Index

Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

isPolicyAdmin(config, rulesEngineAdminContract, policyId, adminAddress): Promise<boolean>
Determine if address is policy admin. This function determines whether or not an address is the 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 check the admin for.
adminAddress`0x${string}`The address to check

Returns

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

Defined in

src/modules/admin.ts:131