-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat!: add support for dynamic configurables #1555
Open
hal3e
wants to merge
37
commits into
master
Choose a base branch
from
hal3e/dynamic-configurables
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…set (#1593) <!-- List the issues this PR closes (if any) in a bullet list format, e.g.: - Closes #ABCD - Closes #EFGH --> <!-- Use this only if this PR requires a mention in the Release Notes Summary. Valuable features and critical fixes are good examples. For everything else, please delete the whole section. --> In this release, we: ~~- Previously deployed blobs are no longer accessible due to changes in blob ID calculation. Redeployment is required.~~ Updates blob ID calculation to use the configurable offset instead of the data offset, aligning with the updated design for scripts and predicates. `has_configurable_section_offset` function checks bytes 4 and 7 to distinguish binary versions. If byte 4 is 0x74 (JMPF), it considers byte 7: 0x02 means legacy, 0x04 means new, and any other value results in an error. <!-- Please write a summary of your changes and why you made them. Not all PRs will be complex or substantial enough to require this section, so you can remove it if you think it's unnecessary. --> - [x] All **changes** are **covered** by **tests** (or not applicable) - [x] All **changes** are **documented** (or not applicable) - [x] I **reviewed** the **entire PR** myself (preferably, on GH UI) - [x] I **described** all **Breaking Changes** (or there's none) --------- Co-authored-by: hal3e <[email protected]> Co-authored-by: Ahmed Sagdati <[email protected]>
Updated the way we access storage slots in the example.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
closes: #1481
closes: #1328 as we can read the configurables directly from the binary
Release notes
In this release, we:
str
configurables.abigen
that can read configurables directly form the binary.ConfigurablesReader
that can be used to read direct and indirect configurables at runtime and compile time.Summary
Breaking Changes
Contract
Regular
andLoader
methodscode()
,contract_id()
,code_root
,state_root
returnResult
Executable
Regular
andLoader
methodscode()
,data_offset_in_code
,loader_code
returnResult
Configurables
'supdate_constants_in
returnsResult
Predicate
'swith_configurable
returnsResult
AbiFormatter
'sdecode_configurables
argumentconfigurable_data
now accepts a&[u8]
Checklist