Skip to main content
Related concept

Signature

Description

Creates a new simple policy with no initial members. Permissionless. Dev: Reverts with ZeroAddress when admin is address(0). Dev: Reverts with IncompatiblePolicyType when policyType is a composite gate. Param: admin Initial admin authorized to modify membership and transfer or renounce administration. Param: policyType BLOCKLIST or ALLOWLIST. Return: newPolicyId The newly assigned policy ID.

Access control

Permissionless creation, but state-changing registry calls require the feature to be active.

Policy interaction

This is part of the singleton PolicyRegistry surface used by B20 policy scopes.

Example