Signature
IPolicyRegistry.sol
Description
Sets each address inaccounts 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
EmitsAllowlistUpdated(policyId, updater, allowed, accounts) on success.
Access Control
Callable only by the current admin ofpolicyId. Any other caller reverts Unauthorized.
Example
Add accounts to an allowlist
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.