Skip to main content

Signature

IPolicyRegistry.sol

Description

Sets each address in accounts to allowed (add or remove) in an ALLOWLIST policy. The change takes effect on the next isAuthorized call against this policy. Every token and composite that references policyId sees the updated membership immediately, no second write on the token is needed. Membership batches are capped by the registry, currently at 64 accounts. A larger batch reverts BatchSizeTooLarge(maxBatchSize), which carries the limit.

Parameters

Reverts

Events

Emits AllowlistUpdated(policyId, updater, allowed, accounts) on success.

Access Control

Callable only by the current admin of policyId. Any other caller reverts Unauthorized.

Example

Add accounts to an allowlist
After this call, isAuthorized(kycId, alice) and isAuthorized(kycId, bob) return true. Any token or composite policy already pointing at kycId reflects this without a separate updatePolicy call on the token. To remove an account, pass false:
Remove an account from an allowlist
Only the current admin of a policy can call updateAllowlist. If you need a different party to manage membership, use stageUpdateAdmin and finalizeUpdateAdmin to transfer administration first.