Signature
IPolicyRegistry.sol
Description
Never reverts. Returnsaddress(0) for any ID that has no admin, including sentinels and IDs that have never been created.
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, oraddress(0) for built-in sentinels (ALWAYS_ALLOW, ALWAYS_BLOCK), renounced policies, unknown IDs, and malformed IDs.
Access Control
View, no role required.Example
Usage Example