@@ -107,8 +107,8 @@ contract WorkflowRegistry is Ownable2StepMsgSender, ITypeAndVersion {
107107 /// Tracks every user that currently has an override for a specific DON.
108108 mapping (bytes32 donHash = > EnumerableSet.AddressSet userOverrides ) private s_donOverrideUsers;
109109
110- /// @dev Stores the current DON Registry reference used by this contract.
111- DONRegistryConfig private s_donRegistry ;
110+ /// @dev Stores the current Capabilities Registry reference used by this contract.
111+ CapabilitiesRegistryConfig private s_capabilitiesRegistry ;
112112 /// @dev Storage of all capacity and workflow life‑cycle events
113113 EventRecord[] private s_events;
114114
@@ -144,7 +144,7 @@ contract WorkflowRegistry is Ownable2StepMsgSender, ITypeAndVersion {
144144 /// @notice Emitted when a workflow owner’s config is updated
145145 event WorkflowOwnerConfigUpdated (address indexed owner , bytes config );
146146 /// @notice Emitted whenever the registry reference is changed.
147- event DONRegistryUpdated (address oldAddr , address newAddr , uint64 oldChainSelector , uint64 newChainSelector );
147+ event CapabilitiesRegistryUpdated (address oldAddr , address newAddr , uint64 oldChainSelector , uint64 newChainSelector );
148148
149149 // ================================================================
150150 // | Errors |
@@ -266,10 +266,10 @@ contract WorkflowRegistry is Ownable2StepMsgSender, ITypeAndVersion {
266266 uint32 limit;
267267 }
268268
269- /// @notice DONRegistryConfig struct stores the pointer to the DON Registry this Workflow Registry uses.
269+ /// @notice CapabilitiesRegistryConfig struct stores the pointer to the Capabilities Registry this Workflow Registry uses.
270270 /// @dev `registry` is the contract address; `chainSelector` identifies the
271271 /// chain where the registry lives (Chainlink selector).
272- struct DONRegistryConfig {
272+ struct CapabilitiesRegistryConfig {
273273 address registry;
274274 uint64 chainSelector;
275275 }
@@ -553,36 +553,36 @@ contract WorkflowRegistry is Ownable2StepMsgSender, ITypeAndVersion {
553553 }
554554
555555 // ================================================================
556- // | DON registry |
556+ // | Capabilities Registry |
557557 // ================================================================
558- /// @notice Sets or replaces the DON Registry that this Workflow Registry points to.
558+ /// @notice Sets or replaces the Capabilities Registry that this Workflow Registry points to.
559559 /// @dev Owner-only. Overwrites the previous entry and emits
560- /// {DONRegistryUpdated }.
561- /// @param registry Address of the DON Registry contract.
560+ /// {CapabilitiesRegistryUpdated }.
561+ /// @param registry Address of the Capabilities Registry contract.
562562 /// @param chainSelector Chain selector for the registry’s chain.
563- function setDONRegistry (address registry , uint64 chainSelector ) external onlyOwner {
564- address oldRegistry = s_donRegistry .registry;
565- uint64 oldChain = s_donRegistry .chainSelector;
563+ function setCapabilitiesRegistry (address registry , uint64 chainSelector ) external onlyOwner {
564+ address oldRegistry = s_capabilitiesRegistry .registry;
565+ uint64 oldChain = s_capabilitiesRegistry .chainSelector;
566566
567567 if (registry == oldRegistry && chainSelector == oldChain) {
568568 return ;
569569 }
570570
571571 if (registry != oldRegistry) {
572- s_donRegistry .registry = registry;
572+ s_capabilitiesRegistry .registry = registry;
573573 }
574574 if (chainSelector != oldChain) {
575- s_donRegistry .chainSelector = chainSelector;
575+ s_capabilitiesRegistry .chainSelector = chainSelector;
576576 }
577577
578- emit DONRegistryUpdated (oldRegistry, registry, oldChain, chainSelector);
578+ emit CapabilitiesRegistryUpdated (oldRegistry, registry, oldChain, chainSelector);
579579 }
580580
581- /// @notice Returns the current DON Registry reference and its chain selector.
582- /// @return Address of the DON Registry contract.
581+ /// @notice Returns the current Capabilities Registry reference and its chain selector.
582+ /// @return Address of the Capabilities Registry contract.
583583 /// @return Chain selector for the registry’s chain.
584- function getDONRegistry () external view returns (address , uint64 ) {
585- return (s_donRegistry .registry, s_donRegistry .chainSelector);
584+ function getCapabilitiesRegistry () external view returns (address , uint64 ) {
585+ return (s_capabilitiesRegistry .registry, s_capabilitiesRegistry .chainSelector);
586586 }
587587
588588 // ================================================================
0 commit comments