Skip to main content

Signature

IPolicyRegistry.sol

Description

Never reverts. Returns address(0) for any ID that has no admin, including sentinels and IDs that have never been created. Inverted IDs: When bit 63 (the invert flag) is set, policyAdmin strips the flag and returns the base policy’s admin. An inverted ID has no record of its own — policyAdmin(invertedPolicyId(id)) == policyAdmin(id). After renounceAdmin, no address can be assigned as admin again. policyAdmin returns address(0) permanently for that policy. During a pending admin transfer, policyAdmin still returns the current admin. The staged nominee is readable via pendingPolicyAdmin. Administration transfers only when the nominee calls finalizeUpdateAdmin.

Parameters

Returns

The current admin address, or address(0) for built-in sentinels (ALWAYS_ALLOW, ALWAYS_BLOCK), renounced policies, unknown IDs, and malformed IDs. An inverted ID returns the base policy’s admin.

Access Control

View, no role required.

Example

Usage Example