Signature
IPolicyRegistry.sol
Description
Sets each address inaccounts to the membership state blocked within the identified BLOCKLIST policy. A BLOCKLIST authorizes any account that is not in the set, so adding an account (blocked = true) causes isAuthorized to return false for that account, and removing it (blocked = false) restores authorization.
The change takes effect on the next isAuthorized query. Every token and composite policy that references policyId sees the updated result immediately, no second updatePolicy call is needed on any token.
Batches are capped by the registry, currently at 64 accounts. A larger batch reverts BatchSizeTooLarge(maxBatchSize), which carries the limit.
Emits BlocklistUpdated(policyId, updater, blocked, accounts) on success.
Parameters
Reverts
Access Control
Callable only by the current admin ofpolicyId. Any other caller reverts Unauthorized.
Example
Add accounts to a blocklist