-
Notifications
You must be signed in to change notification settings - Fork 29
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
SSTORE2-compatible dependency registry (for scripts) #895
Conversation
…/artblocks-contracts into dependency-registry-v0-updates
…-dependency-registry
…rtBlocks/artblocks-contracts into sstore2-compatible-dependency-registry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - interested in your thoughts about specifying encoding (see comment)
Minor adjustment to be consistent with consistency adjustments made in: ArtBlocks/artblocks-contracts#895
Thank you ser! Re-requesting another review pass if that is ok though, given meaningful changes made across the entirety of the file for consistency purposes based on feedback. |
…rtBlocks/artblocks-contracts into sstore2-compatible-dependency-registry
Description of the change
This PR makes a few interrelated changes:
BytecodeStorage
library implementation, but also provide fallback support for pointing toSSTORE2
-written data.BytecodeStorage
library or an unknown library (which we will fallback to reading as anSSTORE2
written blob).Appropriate test coverage is also added for these changes.
As discussed internally, the rationale for this change is to allow the reuse of referencing existing uploads of dependencies that may already exist on chain (e.g. an upload of p5js 1.0.0 that has already been uploaded on-chain via EthFS) as script versions that the dependency registry is aware of, without requiring the superfluous re-upload of these script references on-chain in their entirety.