Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getCapabilities to the CapabilityRegistry #13031

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

DeividasK
Copy link
Collaborator

No description provided.

…stry-get-capabilities

# Conflicts:
#	core/gethwrappers/keystone/generated/keystone_capability_registry/keystone_capability_registry.go
#	core/gethwrappers/keystone/generation/generated-wrapper-dependency-versions-do-not-edit.txt
@DeividasK DeividasK marked this pull request as ready for review April 29, 2024 16:24
@@ -0,0 +1,29 @@
// SPDX-License-Identifier: MIT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: file name inconsistent with the name of the test and the other file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 will fix it in a follow-up to avoid merge conflict.

@@ -10,4 +10,8 @@ contract CapabilityConfigurationContract is ICapabilityConfiguration, ERC165 {
function getCapabilityConfiguration(uint256 donId) external view returns (bytes memory configuration) {
return s_donConfiguration[donId];
}

function supportsInterface(bytes4 interfaceId) public pure override returns (bool) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this used anywhere, why is it needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is called by consumers/callers of this contract. My guess is the capability registry will call this prior to adding a particular configuration contract address to check that it supports the interface.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@DeividasK DeividasK added this pull request to the merge queue Apr 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 30, 2024
@DeividasK DeividasK added this pull request to the merge queue Apr 30, 2024
@DeividasK DeividasK removed this pull request from the merge queue due to a manual request Apr 30, 2024
@DeividasK DeividasK added this pull request to the merge queue Apr 30, 2024
Merged via the queue into develop with commit 04b42f1 Apr 30, 2024
105 checks passed
@DeividasK DeividasK deleted the KS-175-public-registry-get-capabilities branch April 30, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants