Signature
IPolicyRegistry.sol
Description
Replaces a composite policy’s child-policy set in full withchildPolicyIds.
Dev: Reverts with PolicyNotFound when policyId does not exist.
Dev: Reverts with IncompatiblePolicyType when policyId is not a composite (UNION or INTERSECT).
Dev: Reverts with Unauthorized when the caller is not the current admin. A renounced composite
(admin address(0)) can never be updated.
Dev: Reverts with ChildPoliciesOutsideOfRange when childPolicyIds.length is not in
[MIN_COMPOSITE_CHILD_POLICIES, MAX_COMPOSITE_CHILD_POLICIES]; there is no clear-the-list
path (the composite child-policy range, not the 64-account batch limit).
Dev: Reverts with PolicyNotFound when any child policy does not exist.
Dev: Reverts with InvalidChildPolicy when any child policy is itself a composite
(not a simple policy).
Param: policyId Composite policy to update.
Param: childPolicyIds Complete new set of existing simple policy IDs.
Access Control
Callable by the policy admin for the target policy.Policy Interaction
This is part of the singleton PolicyRegistry surface used by B20 policy scopes.Example
Usage Example