Signature
Description
Creates a new simple policy seeded withaccounts as initial members. Permissionless.
Dev: Reverts with ZeroAddress when admin is address(0). Takes precedence over BatchSizeTooLarge.
Dev: Reverts with IncompatiblePolicyType when policyType is a composite policyType.
Dev: Reverts with BatchSizeTooLarge when accounts.length exceeds the registry limit.
Dev: Panics with arithmetic overflow (Panic 0x11) when the policy counter has reached its maximum value.
Param: admin Initial admin authorized to modify membership and transfer or renounce administration.
Param: policyType BLOCKLIST or ALLOWLIST.
Param: accounts Initial member set.
Return: newPolicyId The newly assigned policy ID.