-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ccip cap config contract updates (#1098)
## Motivation The most recent merge introduced breaking changes to the capability registry contract. This PR fixes them. ## Solution * capability registry -> capabilities registry rename * implement IERC165 for the capabilities registry * update ICapabilitiesRegistry interface
- Loading branch information
Showing
10 changed files
with
1,508 additions
and
1,513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
...bility/interfaces/ICapabilityRegistry.sol → ...lity/interfaces/ICapabilitiesRegistry.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
interface ICapabilityRegistry { | ||
interface ICapabilitiesRegistry { | ||
struct NodeInfo { | ||
/// @notice The id of the node operator that manages this node | ||
uint32 nodeOperatorId; | ||
/// @notice The number of times the node's configuration has been updated | ||
uint32 configCount; | ||
/// @notice The ID of the Workflow DON that the node belongs to. A node can | ||
/// only belong to one DON that accepts Workflows. | ||
uint32 workflowDONId; | ||
/// @notice The signer address for application-layer message verification. | ||
bytes32 signer; | ||
/// @notice This is an Ed25519 public key that is used to identify a node. | ||
/// This key is guaranteed to be unique in the CapabilityRegistry. It is | ||
/// This key is guaranteed to be unique in the CapabilitiesRegistry. It is | ||
/// used to identify a node in the the P2P network. | ||
bytes32 p2pId; | ||
/// @notice The list of hashed capability IDs supported by the node | ||
bytes32[] hashedCapabilityIds; | ||
/// @notice The list of capabilities DON Ids supported by the node. A node | ||
/// can belong to multiple capabilities DONs. This list does not include a | ||
/// Workflow DON id if the node belongs to one. | ||
uint256[] capabilitiesDONIds; | ||
} | ||
|
||
/// @notice Gets a node's data | ||
/// @param p2pId The P2P ID of the node to query for | ||
/// @return NodeInfo The node data | ||
/// @return configCount The number of times the node has been configured | ||
function getNode(bytes32 p2pId) external view returns (NodeInfo memory, uint32 configCount); | ||
function getNode(bytes32 p2pId) external view returns (NodeInfo memory); | ||
} |
Oops, something went wrong.