Skip to main content

Signature

IPolicyRegistry.sol

Description

Returns whether account is authorized under policyId. Never reverts; unknown or malformed IDs collapse to empty-member-set semantics (ALLOWLISTfalse, BLOCKLISTtrue). Callers that store policy IDs must validate policyExists(policyId) at write time. A typo’d BLOCKLIST ID silently behaves as ALWAYS_ALLOW because an unknown ID collapses to an empty member set.

Parameters

Returns

Access Control

Always callable. This function is never gated by the ActivationRegistry, regardless of whether the PolicyRegistry feature is active.

Policy Interaction

Part of the singleton PolicyRegistry surface used by B20 policy scopes. For composite policies (UNION/INTERSECT), this function reads current child-policy membership on every call, so updating a child’s membership immediately affects what the composite authorizes.

Example

Usage Example