Skip to main content

Signature

IPolicyRegistry.sol

Description

Replaces a composite policy’s child-policy set in full with childPolicyIds. There is no partial edit, the entire child set is replaced in one call. The write takes effect on the next isAuthorized call that references policyId. Every token that stores this policy ID sees the new result without a second updatePolicy call on the token.

Parameters

Reverts

Events

Emits CompositePolicyUpdated(policyId, updater, childPolicyIds) on success.

Access Control

Callable only by the current admin of policyId. A composite whose admin has been renounced (via renounceAdmin) can never be updated.

Example

Usage Example