Add schema and generated types for anchor cells. #124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is the first part of an effort to extend #108 (basic
Anchor
implementation) with the ability to load/store values from an anchor path. It may be helpful for reviewers to quickly re-read #108.The present PR adds a
cell()
method to theAnchor
schema. This method returns a set of capabilities that serve as an access-controlled interface to the values stored in an anchor. I recommend reading the docstrings inanchor.capnp
, and encourage reviewers to flag any lingering uncertainties.The next PR will focus on the actual implementation of the
cell
interfaces, as well as updating theAnchor
's refcounting logic to track the presence of stored values.@mikelsr I'm tagging you as the primary reviewer as per our conversation on Friday. This will hopefully help you form an understanding of the anchor API, and inform our future work on Wetware demos.
cc @aratz-lasa @ayazabbas Your feedback is, as always, most welcome :)